lists-size

Get size of lists, like Set.size.

Usage no npm install needed!

<script type="module">
  import listsSize from 'https://cdn.skypack.dev/lists-size';
</script>

README

lists-size

NOTE: lists-size was renamed to @extra-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