SyntaxFix
Write A Post
Hire A Developer
Questions
In ES2015 a.k.a ES6 version of JavaScript, a new datatype called Map is introduced.
Map
let map = new Map([["key1", "value1"], ["key2", "value2"]]); map.get("key1"); // => value1
check this reference for more info.