Uint8ClampedArrayConstructor
@native @JSType trait Uint8ClampedArrayConstructor extends StObject with Instantiable0[Uint8ClampedArray] with Instantiable1[ArrayBufferLike | ArrayLike[Double] | Double | Iterable[Double], Uint8ClampedArray] with Instantiable2[ArrayBufferLike, Double, Uint8ClampedArray] with Instantiable3[ArrayBufferLike, Double | Unit, Double, Uint8ClampedArray]
trait Instantiable1[ArrayBufferLike | ArrayLike[Double] | Double | Iterable[Double], Uint8ClampedArray]
trait Instantiable0[Uint8ClampedArray]
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): Uint8ClampedArray
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): Uint8ClampedArray