ramda-adjunct
Version:
Ramda Adjunct is the most popular and most comprehensive set of utilities for use with Ramda, providing a variety of useful, well tested functions with excellent documentation.
28 lines (25 loc) • 875 B
JavaScript
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = require("ramda");
/**
* Returns the elements of the given list or string (or object with a slice method)
* from fromIndex (inclusive).
* Dispatches to the slice method of the second argument, if present.
*
* @func sliceFrom
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/1.16.0|v1.16.0}
* @category List
* @sig Number -> [a] -> [a]
* @param {number} fromIndex The start index (inclusive)
* @param {Array|string} list The list or string to slice
* @return {Array|string} The sliced list or string
* @see {@link http://ramdajs.com/docs/#slice|R.slice}, {@link RA.sliceTo|sliceTo}
* @example
*
* RA.sliceFrom(1, [1, 2, 3]); //=> [2, 3]
*/
var sliceFrom = (0, _ramda.slice)(_ramda.__, Infinity);
var _default = sliceFrom;
exports["default"] = _default;
;