2.10.19 • Published 2 years ago

@extra-array/has-path v2.10.19

Weekly downloads
17
License
MIT
Repository
github
Last release
2 years ago

Checks 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.

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

2.10.19

2 years ago

2.10.18

3 years ago

2.10.17

3 years ago

2.10.16

3 years ago

2.10.15

3 years ago

2.10.10

3 years ago

2.10.11

3 years ago

2.10.12

3 years ago

2.10.13

3 years ago

2.10.14

3 years ago

2.10.9

3 years ago

2.10.8

4 years ago

2.10.7

4 years ago

2.10.6

4 years ago

2.10.5

4 years ago