Version 1
[yaffs-website] / node_modules / grunt-legacy-log / node_modules / lodash / array / rest.js
diff --git a/node_modules/grunt-legacy-log/node_modules/lodash/array/rest.js b/node_modules/grunt-legacy-log/node_modules/lodash/array/rest.js
new file mode 100644 (file)
index 0000000..9bfb734
--- /dev/null
@@ -0,0 +1,21 @@
+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;