Libraries like Lodash and Underscore are better for handling stuff like this, especially if your website has users with older browsers which lack browser support for features like map. But if you still want to use an inbuilt feature, I guess you could always polyfill the feature into the browser.