@arrows/array
Version:
Functional tools for JS arrays
15 lines (14 loc) • 409 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.get_ = void 0;
const curry_1 = require("@arrows/composition/curry");
const _get_ = (index, arr) => arr[index];
/**
* Retrieves an element at the specific index.
*
* @param index Specific index
* @returns Element at the specific index
*/
const get_ = curry_1.default(_get_);
exports.get_ = get_;
exports.default = get_;
;