@extra-map/head.min

Gets first entry.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@extra-map/head.min
312.2.152 years ago2 years agoMinified + gzip package size for @extra-map/head.min in KB

Readme

Gets first entry. :package: :smileycat: :running: :vhs: :moon: :scroll: :newspaper: :bluebook:
Similar: head, tail.

This is part of package extra-map.

This is browserified, minified version of @extra-map/head.
It is exported as global variable maphead.
CDN: unpkg
, jsDelivr.



map.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);
// [ undefined, undefined ]



References