2.2.10 • Published 4 years ago

@extra-lists/find-all v2.2.10

Weekly downloads
27
License
MIT
Repository
github
Last release
4 years ago

Finds values passing a test. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:

Alternatives: find, findAll. Similar: find, search, searchValue.

This is part of package extra-lists.

lists.findAll(x, ft);
// x:  lists
// ft: test function (v, k, x)
const lists = require('extra-lists');

var x = [['a', 'b', 'c', 'd'], [1, 2, 3,  4]];
[...lists.findAll(x, v => v % 2 === 0)];
// [ 2, 4 ]                      ^                   ^

[...lists.findAll(x, v => v % 8 === 0)];
// []

References

2.2.10

4 years ago

2.2.9

4 years ago

2.2.8

4 years ago

2.2.7

4 years ago

2.2.5

4 years ago

2.2.4

4 years ago

2.2.3

4 years ago

2.2.2

4 years ago

2.2.0

4 years ago

2.1.3

4 years ago

2.1.6

4 years ago

2.1.5

4 years ago

2.1.8

4 years ago

2.1.7

4 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.91

5 years ago

2.0.90

5 years ago

2.0.89

5 years ago

2.0.88

5 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.5

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago