@@ -79,20 +79,20 @@ return /******/ (function(modules) { // webpackBootstrap
79
79
return false ;
80
80
} ;
81
81
82
- var getKeys = Object . keys ? function getKeys ( obj ) {
82
+ var getKeys = typeof Object . keys === 'function' ? function getKeys ( obj ) {
83
83
return Object . keys ( obj ) ;
84
84
} : function getKeys ( obj ) {
85
85
var objType = typeof obj ;
86
86
87
- if ( obj === null || objType !== 'function' || objType !== 'object' ) {
87
+ if ( obj === null || objType !== 'function' && objType !== 'object' ) {
88
88
throw new TypeError ( 'obj must be an Object' ) ;
89
89
}
90
90
91
91
var resultKeys = [ ] ,
92
- key = undefined ;
92
+ key = void 0 ;
93
93
94
94
for ( key in obj ) {
95
- obj . hasOwnProperty ( key ) && resultKeys . push ( key ) ;
95
+ Object . prototype . hasOwnProperty . call ( obj , key ) && resultKeys . push ( key ) ;
96
96
}
97
97
98
98
return resultKeys ;
@@ -116,31 +116,31 @@ return /******/ (function(modules) { // webpackBootstrap
116
116
throw new TypeError ( 'array must be an Array' ) ;
117
117
}
118
118
119
- var i = undefined ,
120
- len = undefined ,
121
- value = undefined ;
119
+ var i = void 0 ,
120
+ len = void 0 ,
121
+ value = void 0 ;
122
122
123
123
for ( i = 0 , len = array . length ; i < len ; ++ i ) {
124
124
value = array [ i ] ;
125
125
126
- // it is SameValue algorithm
127
- // http://stackoverflow.com/questions/27144277/comparing-a-variable-with-itself
126
+ // NOTE:
127
+ //
128
+ // it is SameValue algorithm
129
+ // http://stackoverflow.com/questions/27144277/comparing-a-variable-with-itself
130
+ //
131
+ // eslint-disable-next-line no-self-compare
128
132
if ( value === s || value !== value && s !== s ) {
129
- // eslint-disable-line no-self-compare
130
133
return i ;
131
134
}
132
135
}
133
136
134
137
return - 1 ;
135
138
}
136
139
137
- exports [ 'default' ] = {
138
- getKeys : getKeys ,
139
- getSymbols : getSymbols ,
140
- indexOf : indexOf ,
141
- isBuffer : isBuffer
142
- } ;
143
- module . exports = exports [ 'default' ] ;
140
+ exports . getKeys = getKeys ;
141
+ exports . getSymbols = getSymbols ;
142
+ exports . indexOf = indexOf ;
143
+ exports . isBuffer = isBuffer ;
144
144
145
145
/***/ } ,
146
146
/* 2 */
@@ -149,6 +149,7 @@ return /******/ (function(modules) { // webpackBootstrap
149
149
'use strict' ;
150
150
151
151
exports . __esModule = true ;
152
+ exports . copyValue = exports . copyCollection = exports . copy = void 0 ;
152
153
153
154
var _polyfill = __webpack_require__ ( 1 ) ;
154
155
@@ -206,7 +207,7 @@ return /******/ (function(modules) { // webpackBootstrap
206
207
return target ;
207
208
} else {
208
209
// user defined function
209
- return new Function ( 'return ' + source ) ( ) ;
210
+ return new Function ( 'return ' + String ( source ) ) ( ) ;
210
211
}
211
212
}
212
213
@@ -236,7 +237,7 @@ return /******/ (function(modules) { // webpackBootstrap
236
237
// +date; // 1420909757913
237
238
// +new Date(date); // 1420909757913
238
239
// +new Date(+date); // 1420909757913
239
- return new Date ( + target ) ;
240
+ return new Date ( target . getTime ( ) ) ;
240
241
}
241
242
242
243
if ( targetClass === '[object RegExp]' ) {
@@ -256,7 +257,7 @@ return /******/ (function(modules) { // webpackBootstrap
256
257
return new RegExp ( regexpText . slice ( 1 , slashIndex ) , regexpText . slice ( slashIndex + 1 ) ) ;
257
258
}
258
259
259
- if ( _polyfill . isBuffer ( target ) ) {
260
+ if ( ( 0 , _polyfill . isBuffer ) ( target ) ) {
260
261
var buffer = new Buffer ( target . length ) ;
261
262
262
263
target . copy ( buffer ) ;
@@ -285,12 +286,9 @@ return /******/ (function(modules) { // webpackBootstrap
285
286
return null ;
286
287
}
287
288
288
- exports [ 'default' ] = {
289
- copy : copy ,
290
- copyCollection : copyCollection ,
291
- copyValue : copyValue
292
- } ;
293
- module . exports = exports [ 'default' ] ;
289
+ exports . copy = copy ;
290
+ exports . copyCollection = copyCollection ;
291
+ exports . copyValue = copyValue ;
294
292
295
293
/***/ } ,
296
294
/* 3 */
@@ -309,21 +307,21 @@ return /******/ (function(modules) { // webpackBootstrap
309
307
}
310
308
311
309
function deepcopy ( target ) {
312
- var customizer = arguments . length <= 1 || arguments [ 1 ] === undefined ? defaultCustomizer : arguments [ 1 ] ;
310
+ var customizer = arguments . length <= 1 || arguments [ 1 ] === void 0 ? defaultCustomizer : arguments [ 1 ] ;
313
311
314
312
if ( target === null ) {
315
313
// copy null
316
314
return null ;
317
315
}
318
316
319
- var resultValue = _copy . copyValue ( target ) ;
317
+ var resultValue = ( 0 , _copy . copyValue ) ( target ) ;
320
318
321
319
if ( resultValue !== null ) {
322
320
// copy some primitive types
323
321
return resultValue ;
324
322
}
325
323
326
- var resultCollection = _copy . copyCollection ( target , customizer ) ,
324
+ var resultCollection = ( 0 , _copy . copyCollection ) ( target , customizer ) ,
327
325
clone = resultCollection !== null ? resultCollection : target ;
328
326
329
327
var visited = [ target ] ,
@@ -339,37 +337,39 @@ return /******/ (function(modules) { // webpackBootstrap
339
337
return null ;
340
338
}
341
339
342
- var resultValue = _copy . copyValue ( target ) ;
340
+ var resultValue = ( 0 , _copy . copyValue ) ( target ) ;
343
341
344
342
if ( resultValue !== null ) {
345
343
// copy some primitive types
346
344
return resultValue ;
347
345
}
348
346
349
- var keys = _polyfill . getKeys ( target ) . concat ( _polyfill . getSymbols ( target ) ) ;
347
+ var keys = ( 0 , _polyfill . getKeys ) ( target ) . concat ( ( 0 , _polyfill . getSymbols ) ( target ) ) ;
350
348
351
- var i = undefined ,
352
- len = undefined ;
349
+ var i = void 0 ,
350
+ len = void 0 ;
353
351
354
- var key = undefined ,
355
- value = undefined ,
356
- index = undefined ,
357
- resultCopy = undefined ,
358
- result = undefined ,
359
- ref = undefined ;
352
+ var key = void 0 ,
353
+ value = void 0 ,
354
+ index = void 0 ,
355
+ resultCopy = void 0 ,
356
+ result = void 0 ,
357
+ ref = void 0 ;
360
358
361
359
for ( i = 0 , len = keys . length ; i < len ; ++ i ) {
362
360
key = keys [ i ] ;
363
361
value = target [ key ] ;
364
- index = _polyfill . indexOf ( visited , value ) ;
362
+ index = ( 0 , _polyfill . indexOf ) ( visited , value ) ;
365
363
366
364
if ( index === - 1 ) {
367
- resultCopy = _copy . copy ( value , customizer ) ;
365
+ resultCopy = ( 0 , _copy . copy ) ( value , customizer ) ;
368
366
result = resultCopy !== null ? resultCopy : value ;
369
367
370
368
if ( value !== null && / ^ (?: f u n c t i o n | o b j e c t ) $ / . test ( typeof value ) ) {
371
369
visited . push ( value ) ;
372
370
reference . push ( result ) ;
371
+ } else {
372
+ ref = result ;
373
373
}
374
374
} else {
375
375
// circular reference
0 commit comments