Skip to content
Subhajit Sahu edited this page Dec 22, 2022 · 13 revisions

Find the length of an iterable.

Similar: size, isEmpty.


function size(x, i?, I?)
// x: an iterable
// i: start index [0]
// I: end index [END]
const entries = require('extra-entries');

var x = [["a", 1], ["b", 2], ["c", 3]];
entries.size(x);
// → 3


References

Clone this wiki locally