4 ms·In ES2017 this gets substantially better: const arr2 = Object.values({...arr, 3: 'New Content'});by mwigdahl 9y agoIn ES2017 this gets substantially better: const arr2 = Object.values({...arr, 3: 'New Content'});