We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Check if nested object has a path.
Similar: hasPath, getPath, removePath$.
function hasPath(x, p) // x: a nested object // p: path
const object = require('extra-object'); var x = {a: {b: 2, c: 3}, d: 4}; object.hasPath(x, ['d']); // → true object.hasPath(x, ['a', 'b']); // → true object.hasPath(x, ['a', 'b', 'c']); // → false