Under the hood, adding a string to an array invokes type coercion -- the Array's toString() method is called, which in turn calls join()
join() is specified not to check for key presence, and returns the empty string if the value is undefined
> Array(3).join(',') ',,'
',,' gives an array of empty strings (different from an array which has
no keys at all)
> ',,'.split(',') [ '', '', '' ]
You can then map over the array of empty strings, and the map function will be invoked for each empty string.
Conversely, map() is specified to check for key presence, and skip calling the map function if key isn't present.