Array , Object and Map in JS

//Returned as an array
 return ['a','b','c']   

// Returned as an object                
 return { 1:'a' , 2:'b' , 3:'c'}

// This is as Map instance
 return { '1' => 'a', '2' => 'b', '3' => 'c' }

if I want to apply some logics on array or objects , I must to write some code for implementing our idea like (delete an element , clear all elements maybe using if condition for checking about a specific element and need to loop on each array or object before checking (These all take time and slow down my web performance..) we must take it into consideration

but There is the Map method that will create a Map instance that has a lot of useful methods that can help us like (delete , get ,clear ,set , has and other....)

U can check them here