Sha256: e74913bd2a98e2d21fa0603e841982c5c20cf8bec4d0a0352de3c23ee3cda226
Contents?: true
Size: 377 Bytes
Versions: 167
Compression:
Stored size: 377 Bytes
Contents
var dropRight = require('./dropRight'); /** * Gets all but the last element of `array`. * * @static * @memberOf _ * @category Array * @param {Array} array The array to query. * @returns {Array} Returns the slice of `array`. * @example * * _.initial([1, 2, 3]); * // => [1, 2] */ function initial(array) { return dropRight(array, 1); } module.exports = initial;
Version data entries
167 entries across 87 versions & 9 rubygems