No Description

rest.js 316B

12345678
  1. import { slice } from './_setup.js';
  2. // Returns everything but the first entry of the `array`. Especially useful on
  3. // the `arguments` object. Passing an **n** will return the rest N values in the
  4. // `array`.
  5. export default function rest(array, n, guard) {
  6. return slice.call(array, n == null || guard ? 1 : n);
  7. }