jonschlinkert / data-store

Easily get, set and persist config data. Fast. Supports dot-notation in keys. No dependencies.
https://github.com/jonschlinkert
MIT License
160 stars 27 forks source link

has-own-deep instead of has-value #2

Closed tunnckoCore closed 9 years ago

tunnckoCore commented 9 years ago

Because .has won't return true when dot notation is used if key value is null or undefined value on the data store and that values are possible case for stores/DBs/etc.

jonschlinkert commented 9 years ago

that would be another method then, since has returns true if a value is truthy, hasOwn would return true if a key exists. want to do a pr to add hasOwn?

tunnckoCore commented 9 years ago

okey, i'll

tunnckoCore commented 9 years ago

closing, as per #3