Version 1
[yaffs-website] / node_modules / uncss / node_modules / lodash / pullAll.js
diff --git a/node_modules/uncss/node_modules/lodash/pullAll.js b/node_modules/uncss/node_modules/lodash/pullAll.js
new file mode 100644 (file)
index 0000000..cf40201
--- /dev/null
@@ -0,0 +1,28 @@
+var basePullAll = require('./internal/basePullAll');
+
+/**
+ * This method is like `_.pull` except that it accepts an array of values to remove.
+ *
+ * **Note:** Unlike `_.difference`, this method mutates `array`.
+ *
+ * @static
+ * @memberOf _
+ * @category Array
+ * @param {Array} array The array to modify.
+ * @param {Array} values The values to remove.
+ * @returns {Array} Returns `array`.
+ * @example
+ *
+ * var array = [1, 2, 3, 1, 2, 3];
+ *
+ * _.pullAll(array, [2, 3]);
+ * console.log(array);
+ * // => [1, 1]
+ */
+function pullAll(array, values) {
+  return (array && array.length && values && values.length)
+    ? basePullAll(array, values)
+    : array;
+}
+
+module.exports = pullAll;