aboutsummaryrefslogtreecommitdiff
path: root/node_modules/lodash/_initCloneArray.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/lodash/_initCloneArray.js')
-rw-r--r--node_modules/lodash/_initCloneArray.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/node_modules/lodash/_initCloneArray.js b/node_modules/lodash/_initCloneArray.js
index aef02120e..078c15af9 100644
--- a/node_modules/lodash/_initCloneArray.js
+++ b/node_modules/lodash/_initCloneArray.js
@@ -13,7 +13,7 @@ var hasOwnProperty = objectProto.hasOwnProperty;
*/
function initCloneArray(array) {
var length = array.length,
- result = array.constructor(length);
+ result = new array.constructor(length);
// Add properties assigned by `RegExp#exec`.
if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {