summaryrefslogtreecommitdiff
path: root/alarm/node_modules/lodash/_initCloneArray.js
diff options
context:
space:
mode:
Diffstat (limited to 'alarm/node_modules/lodash/_initCloneArray.js')
-rw-r--r--alarm/node_modules/lodash/_initCloneArray.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/alarm/node_modules/lodash/_initCloneArray.js b/alarm/node_modules/lodash/_initCloneArray.js
deleted file mode 100644
index 078c15a..0000000
--- a/alarm/node_modules/lodash/_initCloneArray.js
+++ /dev/null
@@ -1,26 +0,0 @@
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * Initializes an array clone.
- *
- * @private
- * @param {Array} array The array to clone.
- * @returns {Array} Returns the initialized clone.
- */
-function initCloneArray(array) {
- var length = array.length,
- result = new array.constructor(length);
-
- // Add properties assigned by `RegExp#exec`.
- if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
- result.index = array.index;
- result.input = array.input;
- }
- return result;
-}
-
-module.exports = initCloneArray;