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 ientries = require('extra-ientries');

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


References

Clone this wiki locally