map.size javascript code example
Example 1: js map size
const map1 = new Map();
map1.set('a', 'alpha');
map1.set('b', 'beta');
map1.set('g', 'gamma');
console.log(map1.size);
// expected output: 3
Example 2: get length of map elixir
iex> Enum.count(%{foo: "bar"})
1