UNPKG

ramda-extension

Version:

Helpful functions built on top of the mighty Ramda

17 lines (16 loc) 365 B
import { lensIndex, over } from '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 = /*#__PURE__*/over( /*#__PURE__*/lensIndex(0)); export default overHead;