Skip to content

Commit 4801a63

Browse files
committed
Meta tweaks
1 parent a6be343 commit 4801a63

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

index.js

+1
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ module.exports = {
124124
return false;
125125
}
126126

127+
// eslint-disable-next-line unicorn/no-for-loop
127128
for (let i = 0; i < pathArray.length; i++) {
128129
if (isObj(object)) {
129130
if (!(pathArray[i] in object)) {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@
4040
"ava": "^2.1.0",
4141
"benchmark": "^2.1.4",
4242
"tsd": "^0.7.2",
43-
"xo": "^0.24.0"
43+
"xo": "^0.25.3"
4444
}
4545
}

test.js

+1
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ test('has', t => {
198198

199199
t.is(dotProp.has({'foo.baz': {bar: true}}, 'foo\\.baz.bar'), true);
200200
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);
201202
});
202203

203204
test('prevent setting/getting `__proto__`', t => {

0 commit comments

Comments
 (0)