Checks if nested array has a path.
npm install @extra-array/has-path.minChecks if nested array has a path.
:package:
:smiley_cat:
:running:
:vhs:
:moon:
:scroll:
:newspaper:
:blue_book:
> Alternatives: [hasValue], [hasPrefix], [hasSuffix], [hasInfix], [hasSubsequence], [hasPermutation], [hasPath].
> Similar: [hasPath], [getPath], [setPath$], [removePath$].
> This is part of package [extra-array].
[extra-array]: https://www.npmjs.com/package/extra-array
> This is browserified, minified version of [@extra-array/has-path].
> It is exported as global variable array_hasPath.
> CDN: [unpkg], [jsDelivr].
[@extra-array/has-path]: https://www.npmjs.com/package/@extra-array/has-path
[unpkg]: https://unpkg.com/@extra-array/has-path.min
[jsDelivr]: https://cdn.jsdelivr.net/npm/@extra-array/has-path.min
``javascript`
array.hasPath(x, p);
// x: a nested array
// p: path
`javascript
const array = require("extra-array");
var x = [[2, 4], 6, 8];
array.hasPath(x, [1]);
// true
array.hasPath(x, [0, 1]);
// true
array.hasPath(x, [0, 1, 2]);
// false
``
- ArrayList.get: Java)
- _.nth: lodash
- Array.at: sugarjs
[hasValue]: https://github.com/nodef/extra-array/wiki/hasValue
[hasPrefix]: https://github.com/nodef/extra-array/wiki/hasPrefix
[hasSuffix]: https://github.com/nodef/extra-array/wiki/hasSuffix
[hasInfix]: https://github.com/nodef/extra-array/wiki/hasInfix
[hasSubsequence]: https://github.com/nodef/extra-array/wiki/hasSubsequence
[hasPermutation]: https://github.com/nodef/extra-array/wiki/hasPermutation
[hasPath]: https://github.com/nodef/extra-array/wiki/hasPath
[getPath]: https://github.com/nodef/extra-array/wiki/getPath
[setPath$]: https://github.com/nodef/extra-array/wiki/setPath$
[removePath$]: https://github.com/nodef/extra-array/wiki/removePath$