size - nodef/extra-entries GitHub Wiki

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](/nodef/extra-entries/wiki/"a",-1],-["b",-2],-["c",-3);
entries.size(x);
// → 3

References