Instead of adding elements using map.set(), we can pass an array of key-value pairs to initialize a Map. let map = new Map([ ["1", "first element"], [1, ...
確定! 回上一頁