Checks if the provided value has the a path of properties
a value that may possibly have some properties
one or more property names
const x = { foo: { bar: { baz: undefined }}}hasPath(x, 'foo', 'bar') => truehasPath(x, 'foo', 'bar', 'baz') => truehasPath(x, 'foo', 'hello', 'baz') => falsehasPath(x, 'foo', 'bar', 'hello') => false Copy
const x = { foo: { bar: { baz: undefined }}}hasPath(x, 'foo', 'bar') => truehasPath(x, 'foo', 'bar', 'baz') => truehasPath(x, 'foo', 'hello', 'baz') => falsehasPath(x, 'foo', 'bar', 'hello') => false
Checks if the provided value has the a path of properties