-
Notifications
You must be signed in to change notification settings - Fork 0
head
Subhajit Sahu edited this page Jun 18, 2020
·
14 revisions
lists.head(x, [ed]);
// x: lists
// ed: default entry
const entries = require('extra-lists');
var x = [['a', 1], ['b', 2], ['c', 3]];
entries.head(x);
// [ 'a', 1 ]
var x = [];
entries.head(x, ['', -1]);
// [ '', -1 ]