EPAM Systems Interview Question

Write a polyfill of Array.map()