source: node_modules/ramda-adjunct/lib/sliceFrom.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 873 bytes
RevLine 
[d24f17c]1"use strict";
2
3exports.__esModule = true;
4exports["default"] = void 0;
5var _ramda = require("ramda");
6/**
7 * Returns the elements of the given list or string (or object with a slice method)
8 * from fromIndex (inclusive).
9 * Dispatches to the slice method of the second argument, if present.
10 *
11 * @func sliceFrom
12 * @memberOf RA
13 * @since {@link https://char0n.github.io/ramda-adjunct/1.16.0|v1.16.0}
14 * @category List
15 * @sig Number -> [a] -> [a]
16 * @param {number} fromIndex The start index (inclusive)
17 * @param {Array|string} list The list or string to slice
18 * @return {Array|string} The sliced list or string
19 * @see {@link http://ramdajs.com/docs/#slice|R.slice}, {@link RA.sliceTo|sliceTo}
20 * @example
21 *
22 * RA.sliceFrom(1, [1, 2, 3]); //=> [2, 3]
23 */
24var sliceFrom = (0, _ramda.slice)(_ramda.__, Infinity);
25var _default = sliceFrom;
26exports["default"] = _default;
Note: See TracBrowser for help on using the repository browser.