UNPKG

ponyfills

Version:

Delivers ponyfills as modules, uses native alternatives first when available

9 lines (8 loc) 472 B
declare function arrayFromPolyfill(source: any, mapFn?: any, thisArg?: any): any; declare const arrayFrom: { <T>(arrayLike: ArrayLike<T>): T[]; <T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; <T>(iterable: Iterable<T> | ArrayLike<T>): T[]; <T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; } | typeof arrayFromPolyfill; export { arrayFrom as default, arrayFromPolyfill, };