File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export default function diff(
12
12
obj : Record < string , any > | any [ ] ,
13
13
newObj : Record < string , any > | any [ ] ,
14
14
options : Partial < Options > = { cyclesFix : true } ,
15
- stack : Record < string , any > [ ] = [ ]
15
+ _stack : Record < string , any > [ ] = [ ]
16
16
) : Difference [ ] {
17
17
let diffs : Difference [ ] = [ ] ;
18
18
for ( const key in obj ) {
@@ -32,13 +32,13 @@ export default function diff(
32
32
newObjKey &&
33
33
areObjects &&
34
34
! richTypes [ Object . getPrototypeOf ( objKey ) . constructor . name ] &&
35
- ( options . cyclesFix ? ! stack . includes ( obj [ key ] ) : true )
35
+ ( options . cyclesFix ? ! _stack . includes ( obj [ key ] ) : true )
36
36
) {
37
37
const nestedDiffs = diff (
38
38
objKey ,
39
39
newObjKey ,
40
40
options ,
41
- options . cyclesFix ? stack . concat ( [ objKey ] ) : [ ]
41
+ options . cyclesFix ? _stack . concat ( [ objKey ] ) : [ ]
42
42
) ;
43
43
diffs . push . apply (
44
44
nestedDiffs . map ( ( difference ) => {
You can’t perform that action at this time.
0 commit comments