Version 1
[yaffs-website] / node_modules / grunt-uncss / node_modules / lodash / _arrayShuffle.js
diff --git a/node_modules/grunt-uncss/node_modules/lodash/_arrayShuffle.js b/node_modules/grunt-uncss/node_modules/lodash/_arrayShuffle.js
new file mode 100644 (file)
index 0000000..46313a3
--- /dev/null
@@ -0,0 +1,15 @@
+var copyArray = require('./_copyArray'),
+    shuffleSelf = require('./_shuffleSelf');
+
+/**
+ * A specialized version of `_.shuffle` for arrays.
+ *
+ * @private
+ * @param {Array} array The array to shuffle.
+ * @returns {Array} Returns the new shuffled array.
+ */
+function arrayShuffle(array) {
+  return shuffleSelf(copyArray(array));
+}
+
+module.exports = arrayShuffle;