2.2.10 • Published 4 years ago

@extra-lists/has v2.2.10

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

Checks if lists has a key. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:

Alternatives: has, hasValue, hasEntry, hasSubset, hasPath. Similar: key, keys, has.

This is part of package extra-lists.

lists.has(x, k);
// x: lists
// k: key?
const lists = require('extra-lists');

var x = [['a', 'b', 'c'], [1, 2, -3]];
lists.has(x, 'd');
// false

lists.has(x, 'c');
// true

References

2.2.10

4 years ago

2.2.9

4 years ago

2.2.7

4 years ago

2.2.8

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

4 years ago