UNPKG

@arrows/array

Version:
13 lines (12 loc) 281 B
declare type Keys = <T>(arr: T[]) => IterableIterator<number>; /** * Functional wrapper for Array.prototype.keys * * Returns an iterable of keys in the array * * @param arr Initial array * @returns Iterator */ declare const keys: Keys; export { keys }; export default keys;