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

Get value at key.

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


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

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

xilists.get(x, 'd');
// → 8


References

Clone this wiki locally