3 ms·
So that others don't have to spend time searching: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map#Tricky_use_case ht
by Sean1708 10y ago
So that others don't have to spend time searching: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map#Tricky_use_case https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- YCode 10y agoWhat does that example prove, other than the two methods aren't compatible? If a properly designed method were passed into map it would work fine. In essence: ["10", "10", "10"].map(Number)
- Sean1708 10y agoThe link just explains why it's happening, I'm not passing judgement on whether it's bad or not.