size - nodef/extra-lists GitHub Wiki

Find the size of lists.

Similar: size, isEmpty.

function size(x)
// x: lists
const xlists = require('extra-lists');

var x = ['a', 'b', 'c'], [1, 2, 3](/nodef/extra-lists/wiki/'a',-'b',-'c'],-[1,-2,-3);
xlists.size(x);
// → 3

References