Javascript Map New Object Array Creation In C