-
Notifications
You must be signed in to change notification settings - Fork 1
head
Subhajit Sahu edited this page Jun 17, 2020
·
18 revisions
set.head(x, [vd]);
// x: a set
// vd: default value
const set = require('extra-set');
var x = new Set([1, 2, 3]);
set.head(x);
// 1
var x = new Set();
set.head(x);
// undefined