Version 1
[yaffs-website] / node_modules / grunt-legacy-util / node_modules / lodash / tail.js
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 (file)
index 0000000..a8bd9c6
--- /dev/null
@@ -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;