* 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)
| 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`. |