Somewhat related - be wary of implicit parameter passing in function pipelines. For example, Try ['10', '10', '10'].map(Number.parseInt) in your browser console. What's actually being called is:
Unfortunately typing doesn't fix this. The 2nd callback function argument of Array.map is (index:number), and the 2nd argument of Number.parseInt is (radix:number).
iso8859-1|1 year ago
JavaScript lacks typing, and then they decided on a weird signature for the callback...
simon04|1 year ago
It's a very nasty issue to debug.