Type Conversion with JavaScript Arrays

added by JavaScript Kicks
5/7/2019 12:50:23 PM

466 Views

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 ...


0 comments