X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=node_modules%2Fgrunt-legacy-util%2Fnode_modules%2Flodash%2Ftail.js;fp=node_modules%2Fgrunt-legacy-util%2Fnode_modules%2Flodash%2Ftail.js;h=a8bd9c671543dd10d602be1fa5fd3c56d8344ad5;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/node_modules/grunt-legacy-util/node_modules/lodash/tail.js b/node_modules/grunt-legacy-util/node_modules/lodash/tail.js new file mode 100644 index 000000000..a8bd9c671 --- /dev/null +++ b/node_modules/grunt-legacy-util/node_modules/lodash/tail.js @@ -0,0 +1,20 @@ +var drop = require('./drop'); + +/** + * Gets all but the first element of `array`. + * + * @static + * @memberOf _ + * @category Array + * @param {Array} array The array to query. + * @returns {Array} Returns the slice of `array`. + * @example + * + * _.tail([1, 2, 3]); + * // => [2, 3] + */ +function tail(array) { + return drop(array, 1); +} + +module.exports = tail;