File tree 3 files changed +3
-1
lines changed
3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ module.exports = {
124
124
return false ;
125
125
}
126
126
127
+ // eslint-disable-next-line unicorn/no-for-loop
127
128
for ( let i = 0 ; i < pathArray . length ; i ++ ) {
128
129
if ( isObj ( object ) ) {
129
130
if ( ! ( pathArray [ i ] in object ) ) {
Original file line number Diff line number Diff line change 40
40
"ava" : " ^2.1.0" ,
41
41
"benchmark" : " ^2.1.4" ,
42
42
"tsd" : " ^0.7.2" ,
43
- "xo" : " ^0.24.0 "
43
+ "xo" : " ^0.25.3 "
44
44
}
45
45
}
Original file line number Diff line number Diff line change @@ -198,6 +198,7 @@ test('has', t => {
198
198
199
199
t . is ( dotProp . has ( { 'foo.baz' : { bar : true } } , 'foo\\.baz.bar' ) , true ) ;
200
200
t . is ( dotProp . has ( { 'fo.ob.az' : { bar : true } } , 'fo\\.ob\\.az.bar' ) , true ) ;
201
+ t . is ( dotProp . has ( undefined , 'fo\\.ob\\.az.bar' ) , false ) ;
201
202
} ) ;
202
203
203
204
test ( 'prevent setting/getting `__proto__`' , t => {
You can’t perform that action at this time.
0 commit comments