a8bd9c671543dd10d602be1fa5fd3c56d8344ad5
[yaffs-website] / node_modules / grunt-legacy-util / node_modules / lodash / tail.js
1 var drop = require('./drop');
2
3 /**
4  * Gets all but the first element of `array`.
5  *
6  * @static
7  * @memberOf _
8  * @category Array
9  * @param {Array} array The array to query.
10  * @returns {Array} Returns the slice of `array`.
11  * @example
12  *
13  * _.tail([1, 2, 3]);
14  * // => [2, 3]
15  */
16 function tail(array) {
17   return drop(array, 1);
18 }
19
20 module.exports = tail;