Version 1
[yaffs-website] / node_modules / uncss / node_modules / lodash / internal / arrayConcat.js
diff --git a/node_modules/uncss/node_modules/lodash/internal/arrayConcat.js b/node_modules/uncss/node_modules/lodash/internal/arrayConcat.js
new file mode 100644 (file)
index 0000000..96e7741
--- /dev/null
@@ -0,0 +1,25 @@
+/**
+ * Creates a new array concatenating `array` with `other`.
+ *
+ * @private
+ * @param {Array} array The first array to concatenate.
+ * @param {Array} other The second array to concatenate.
+ * @returns {Array} Returns the new concatenated array.
+ */
+function arrayConcat(array, other) {
+  var index = -1,
+      length = array.length,
+      othIndex = -1,
+      othLength = other.length,
+      result = Array(length + othLength);
+
+  while (++index < length) {
+    result[index] = array[index];
+  }
+  while (++othIndex < othLength) {
+    result[index++] = other[othIndex];
+  }
+  return result;
+}
+
+module.exports = arrayConcat;