Get size of lists, like Set.size.


Keywords
lists, size
License
MIT
Install
npm install lists-size@0.1.3

Documentation

lists-size

NPM

Get size of lists, like Set.size.

const size = require('lists-size');
// size(<lists>)

a = ['directed', 'acyclic', 'graph'];
size([a.keys(), a]);
// 3
a = {w1: 'linked', w2: 'list'};
size([Object.keys(a), Object.values(a)]);
// 2