Uint8ArrayConstructor
@native @JSType trait Uint8ArrayConstructor extends StObject with Instantiable0[Uint8Array] with Instantiable1[ArrayBufferLike | ArrayLike[Double] | Double | Iterable[Double], Uint8Array] with Instantiable2[ArrayBufferLike, Double, Uint8Array] with Instantiable3[ArrayBufferLike, Double | Unit, Double, Uint8Array]
trait Instantiable0[Uint8Array]
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any
Value members
Concrete methods
Creates an array from an array-like or iterable object.
Creates an array from an array-like or iterable object.
- Value Params
- arrayLike
An array-like or iterable object to convert to an array.
Creates an array from an array-like or iterable object.
Creates an array from an array-like or iterable object.
- Value Params
- arrayLike
An array-like or iterable object to convert to an array.
- mapfn
A mapping function to call on every element of the array.
- thisArg
Value of 'this' used to invoke the mapfn.
def from(arrayLike: Iterable[Double], mapfn: Function2[Double, Double, Double], thisArg: Any): Uint8Array
Creates an array from an array-like or iterable object.
Creates an array from an array-like or iterable object.
- Value Params
- arrayLike
An array-like or iterable object to convert to an array.
- mapfn
A mapping function to call on every element of the array.
- thisArg
Value of 'this' used to invoke the mapfn.