Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 312 Bytes

File metadata and controls

11 lines (8 loc) · 312 Bytes

Has value and path exists

If only the existence of a result is needed from JSONway.get, then JSONway.has can be used to check if the result is something else than undefined or an empty list or object.

JSONway.has(myObject, 'aa.bb.cc')
// true

JSONway.has(myObject, 'aa.missing.bb')
// false