2.5.22 • Published 3 years ago

@extra-iterable/get-path.min v2.5.22

Weekly downloads
16
License
MIT
Repository
github
Last release
3 years ago

Gets value at path in a nested iterable. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:

Alternatives: get, getAll, getPath. Similar: hasPath, getPath. Similar: get, set, remove.

This is part of package extra-iterable.

This is browserified, minified version of @extra-iterable/get-path. It is exported as global variable iterable_getPath. CDN: unpkg, jsDelivr.

iterable.getPath(x, p);
// x: a nested iterable
// p: path
const iterable = require("extra-iterable");

var x = [[2, 4], 6, 8];
iterable.getPath(x, [1]);
// 6

iterable.getPath(x, [0, 1]);
// 4

iterable.getPath(x, [0, 1, 2]);
// undefined

References

2.5.22

3 years ago

2.5.21

3 years ago

2.5.20

3 years ago

2.5.18

3 years ago

2.5.17

3 years ago

2.5.14

3 years ago

2.5.13

4 years ago

2.5.10

4 years ago

2.5.11

4 years ago

2.5.12

4 years ago

2.5.9

4 years ago

2.5.8

4 years ago

2.5.7

4 years ago

2.5.6

4 years ago

2.5.5

4 years ago

2.5.4

4 years ago

2.5.3

4 years ago