UNPKG

@arrows/array

Version:
15 lines (14 loc) 333 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.keys = void 0; /** * Functional wrapper for Array.prototype.keys * * Returns an iterable of keys in the array * * @param arr Initial array * @returns Iterator */ const keys = (arr) => arr.keys(); exports.keys = keys; exports.default = keys;