Will miss cache if field exists but is falsy
Closed this issue · 0 comments
wildhart commented
Caused by this code:
if (!doc[field[i]]) {
return;
}
doc = {admin: false};
field = 'false';
hasField(doc, field); // undefined, but should be true because the field does exist