-
Notifications
You must be signed in to change notification settings - Fork 0
has
Subhajit Sahu edited this page Feb 4, 2021
·
9 revisions
Checks if entries has a key. 🏃 📼 📦 🌔 📒
Alternatives: has, hasValue, hasEntry, hasSubset, hasPath.
Similar: key, keys, has.
entries.has(x, k);
// x: entries
// k: key?
const entries = require("extra-entries");
var x = [["a", 1], ["b", 2], ["c", -3]];
entries.has(x, "d");
// false
entries.has(x, "c");
// true