3 ms·
It will iterate just fine, there are no values (undefined) for each `0` through `length-1` new Array(26).length === 26; //true
by tracker1 12y ago
It will iterate just fine, there are no values (undefined) for each `0` through `length-1`
new Array(26).length === 26; //true
- disusered 12y agoSeems like it doesn't, I recently read about this gotcha so I tested it out in JSBin. Using lodash map works as expected, though. JSBin: http://jsbin.com/vasulumeti/1/edit?js,console http://jsbin.com/vasulumeti/1/edit?js,console StackOverflow: http://stackoverflow.com/a/5501711/211291 http://stackoverflow.com/a/5501711/211291