UNPKG

ramda-extension

Version:

Helpful functions built on top of the mighty Ramda

25 lines (22 loc) 487 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _ramda = require("ramda"); /** * Returns an over lens to the first index of list. * * @func * @category List * @param {*} v * @param {*} x * @return {*} * @example * * R_.overHead(R.toUpper, ['foo', 'bar', 'baz']); //=> ['FOO', 'bar', 'baz'] * */ var overHead = (0, _ramda.over)((0, _ramda.lensIndex)(0)); var _default = overHead; exports.default = _default;