Skip to content
Subhajit Sahu edited this page Dec 22, 2022 · 16 revisions

Get value at key.

Alternatives: get, getAll, getPath.
Similar: get, set, remove.


function get(x, k)
// x: ientries
// k: key
const ientries = require('extra-ientries');

var x = [["a", 2], ["b", 4], ["c", 6], ["d", 8]];
ientries.get(x, "b");
// → 4

ientries.get(x, "d");
// → 8


References

Clone this wiki locally