Skip to content
Subhajit Sahu edited this page Feb 4, 2021 · 10 revisions

Checks if lists has a key. 🏃 📼 📦 🌔 📒

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

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

Clone this wiki locally