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: entries
// k: key
const entries = require('extra-entries');

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

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


References

Clone this wiki locally