ArrayConstructor

@native @JSType trait ArrayConstructor extends StObject with Instantiable0[Array[Any]] with Instantiable1[Double | Object, Array[Any | Object]]
trait Instantiable1[Double | Object, Array[Any | Object]]
trait Instantiable0[Array[Any]]
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(): Array[Any]
def apply(arrayLength: Double): Array[Any]
def apply[T](items: T*): Array[T]
def from[T](arrayLike: ArrayLike[T]): Array[T]

Creates an array from an array-like object.

Creates an array from an array-like object.

Value Params
arrayLike

An array-like object to convert to an array.

def from[T](iterable: Iterable[T]): Array[T]

Creates an array from an iterable object.

Creates an array from an iterable object.

Value Params
iterable

An iterable object to convert to an array.

def from[T, U](arrayLike: ArrayLike[T], mapfn: Function2[T, Double, U]): Array[U]

Creates an array from an iterable object.

Creates an array from an iterable object.

Value Params
arrayLike

An array-like 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, U](arrayLike: ArrayLike[T], mapfn: Function2[T, Double, U], thisArg: Any): Array[U]
def from[T, U](iterable: Iterable[T], mapfn: Function2[T, Double, U]): Array[U]

Creates an array from an iterable object.

Creates an array from an iterable object.

Value Params
iterable

An 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, U](iterable: Iterable[T], mapfn: Function2[T, Double, U], thisArg: Any): Array[U]
def isArray(arg: Any): Boolean
def of[T](items: T*): Array[T]

Returns a new array from a set of elements.

Returns a new array from a set of elements.

Value Params
items

A set of elements to include in the new array object.

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object

Concrete fields