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
|
Rev | Line | |
---|
[d24f17c] | 1 | "use strict";
|
---|
| 2 |
|
---|
| 3 | exports.__esModule = true;
|
---|
| 4 | exports["default"] = void 0;
|
---|
| 5 | var _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 | */
|
---|
| 24 | var sliceFrom = (0, _ramda.slice)(_ramda.__, Infinity);
|
---|
| 25 | var _default = sliceFrom;
|
---|
| 26 | exports["default"] = _default; |
---|
Note:
See
TracBrowser
for help on using the repository browser.