We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Get first entry from map (default order).
Similar: head, tail.
function head(x, ed) // x: a map // ed: default entry
const map = require('extra-map'); var x = new Map([['a', 1], ['b', 2], ['c', 3]]); map.head(x); // → [ 'a', 1 ] var x = new Map(); map.head(x); // → []