UNPKG
@arrows/array
Version:
latest (1.4.1)
1.4.1
1.4.0
1.3.0
1.2.1
1.2.0
1.1.1
1.1.0
1.0.0
0.5.0
0.4.9
0.4.8
0.4.7
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.0
0.2.0
0.1.0
Functional tools for JS arrays
github.com/caderek/arrows/tree/master/packages/array
caderek/arrows
@arrows/array
/
rest_.js
13 lines
(12 loc)
•
295 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
rest_
=
void
0
;
/** * Creates new array without the first element. * *
@param
arr Initial array *
@returns
New array */
const
rest_
= (
arr
) => arr.
slice
(
1
);
exports
.
rest_
= rest_;
exports
.
default
= rest_;