MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / rest

Function rest

lib/web/jshint.js:6833–6835  ·  view source on GitHub ↗

* Gets all but the first element of `array`. * * @static * @memberOf _ * @alias tail * @category Array * @param {Array} array The array to query. * @returns {Array} Returns the slice of `array`. * @example * * _.rest([1, 2, 3]); * // => [2, 3]

(array)

Source from the content-addressed store, hash-verified

6831 * // => [2, 3]
6832 */
6833 function rest(array) {
6834 return drop(array, 1);
6835 }
6836
6837 /**
6838 * Creates a slice of `array` from `start` up to, but not including, `end`.

Callers

nothing calls this directly

Calls 1

dropFunction · 0.85

Tested by

no test coverage detected