|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
316 bytes
|
| Line | |
|---|
| 1 | import { slice } from './_setup.js';
|
|---|
| 2 |
|
|---|
| 3 | // Returns everything but the first entry of the `array`. Especially useful on
|
|---|
| 4 | // the `arguments` object. Passing an **n** will return the rest N values in the
|
|---|
| 5 | // `array`.
|
|---|
| 6 | export default function rest(array, n, guard) {
|
|---|
| 7 | return slice.call(array, n == null || guard ? 1 : n);
|
|---|
| 8 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.