Sha256: acd70c6f598cb81dac6a16d7b5040adad366d3dcf81cf6d5731d81bf2b7a613c
Contents?: true
Size: 369 Bytes
Versions: 167
Compression:
Stored size: 369 Bytes
Contents
var drop = require('./drop'); /** * 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] */ function rest(array) { return drop(array, 1); } module.exports = rest;
Version data entries
167 entries across 87 versions & 9 rubygems