5 ms·
What 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:
by YCode 10y ago
What 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.