Float32ArrayConstructor
@native @JSType trait Float32ArrayConstructor extends StObject with Instantiable0[Float32Array] with Instantiable1[ArrayBufferLike | ArrayLike[Double] | Double | Iterable[Double], Float32Array] with Instantiable2[ArrayBufferLike, Double, Float32Array] with Instantiable3[ArrayBufferLike, Double | Unit, Double, Float32Array]
trait Instantiable0[Float32Array]
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): Float32Array
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[T](arrayLike: ArrayLike[T], mapfn: Function2[T, Double, Double], thisArg: Any): Float32Array