@extra-array/has-path.min
TypeScript icon, indicating that this package has built-in type declarations

2.10.19 • Public • Published

Checks if nested array has a path. 📦 😺 🏃 📼 🌔 📜 📰 📘

Alternatives: hasValue, hasPrefix, hasSuffix, hasInfix, hasSubsequence, hasPermutation, hasPath.
Similar: hasPath, getPath, setPath$, removePath$.

This is part of package extra-array.

This is browserified, minified version of @extra-array/has-path.
It is exported as global variable array_hasPath.
CDN: unpkg, jsDelivr.


array.hasPath(x, p);
// x: a nested array
// p: path
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


References

Package Sidebar

Install

npm i @extra-array/has-path.min

Weekly Downloads

0

Version

2.10.19

License

MIT

Unpacked Size

5.68 kB

Total Files

8

Last publish

Collaborators

  • wolfram77