JavaScript map function grammatical sugar trap

JavaScript map function grammatical sugar trap

Don’t pursue techniques that seem too fancy, or they may backfire
(不要追求看似过于花哨的技巧,否则可能适得其反)

1
2
let m = [10, 10, 10].map(parseInt);
document.write(m);
Read more