summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/cli-table2/node_modules/lodash/internal/arrayConcat.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/cli-table2/node_modules/lodash/internal/arrayConcat.js')
-rw-r--r--deps/npm/node_modules/cli-table2/node_modules/lodash/internal/arrayConcat.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/deps/npm/node_modules/cli-table2/node_modules/lodash/internal/arrayConcat.js b/deps/npm/node_modules/cli-table2/node_modules/lodash/internal/arrayConcat.js
new file mode 100644
index 0000000000..0d131e3999
--- /dev/null
+++ b/deps/npm/node_modules/cli-table2/node_modules/lodash/internal/arrayConcat.js
@@ -0,0 +1,25 @@
+/**
+ * Creates a new array joining `array` with `other`.
+ *
+ * @private
+ * @param {Array} array The array to join.
+ * @param {Array} other The other array to join.
+ * @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;