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:
843 bytes
|
Line | |
---|
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 | * to toIndex (exclusive).
|
---|
9 | * Dispatches to the slice method of the second argument, if present.
|
---|
10 | *
|
---|
11 | * @func sliceTo
|
---|
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} toIndex The end index (exclusive)
|
---|
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.sliceFrom|sliceFrom}
|
---|
20 | * @example
|
---|
21 | *
|
---|
22 | * RA.sliceTo(2, [1, 2, 3]); //=> [1, 2]
|
---|
23 | */
|
---|
24 | var sliceTo = (0, _ramda.slice)(0);
|
---|
25 | var _default = sliceTo;
|
---|
26 | exports["default"] = _default; |
---|
Note:
See
TracBrowser
for help on using the repository browser.