Discover the Map data structure introduced in ES6 to associate data with keys. ... const m = new Map() m.set(NaN, 'test') m.get(NaN) //test.
確定! 回上一頁