-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Labels
Description
code on
Lines 160 to 162 in c540af3
| if (isEmpty(path) || path.length === 0) { | |
| return false; | |
| } |
.has() method:
if (isEmpty(path) || path.length === 0) {
return false;
}If we are searching for an empty key and the variable being searched is an object, then it is intuitive that the object has that. It can perhaps miss all keys in the world as long as long as they have a name, but for keys with no name any object has all.