javascript converting an array into a map

Solutions on MaxInterview for javascript converting an array into a map by the best coders in the world

showing results for - "javascript converting an array into a map"
Roberto
28 Jan 2019
1const arr = ['a', 'b', 'c', 2, 3, 4];
2const nwMap = new Map([...arr.entries()]); 
3