-
Notifications
You must be signed in to change notification settings - Fork 0
has
Subhajit Sahu edited this page Jun 28, 2020
·
10 revisions
Checks if lists has a key. [:running:] [:vhs:] [:package:] [:moon:] [:ledger:]
Similar: [key], [keys], [has].
lists.isKey(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