DefinitelyTyped/types/array.from/implementation.d.ts
ExE Boss 192a1b5b5b feat: Add array.from (#39055)
* feat: Add `array.from`

* docs(array.from): Add TSDoc comments

* docs(array.from): Improve TSDoc
2019-10-16 14:06:06 -07:00

9 lines
341 B
TypeScript

/**
* Creates an array from an array-like or iterable object.
* @param iterable An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of `this` used to invoke the mapfn.
*/
declare const ArrayFrom: typeof Array.from;
export = ArrayFrom;