-
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 lists = require('extra-lists');
var x = [['a', 'b', 'c'], [1, 2, 3]];
lists.head(x);
// [ 'a', 1 ]
var x = [[], []];
lists.head(x, ['', -1]);
// [ '', -1 ]