Skip to main content

Home > @jsplumb/util > fromArray

fromArray() function#

A shim for the fromArray method, which is not present in IE11. This method falls back to fromArray if it is present.

Signature:

export declare function fromArray<T>(a: ArrayLike<T>): Array<T>;

Parameters#

ParameterTypeDescription
aArrayLike<T>Array-like object to convert into an Array

Returns:

Array<T>

An Array