I am a little confused by the behavior of the Array.map function here:
var arr = ['one', 'two', 'three']; var result = ''; result += arr.map(function(elm) { return elm; });
How does it automatically join the returned results with,?
Note. This only happens if I concatenate the return result in a string.
source share