Type Conversion with JavaScript Arrays

1 · David Walsh · May 7, 2019, 12:45 p.m.
JavaScript’s loose nature allows developers to employ amazing tricks to do just about anything you’d like. I’ve detailed how you can filter falsy values in arrays using a filter(Boolean) trick, but reader David Hibshman shared another trick for typecasting array values the same way. To typecast an array of elements, you can use map and […] The post Type Conversion with JavaScript Arrays appeared first on David Walsh Blog. ...