Skip to content
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

references

Clone this wiki locally