Second, you can pass an iterable (e.g., an Array) over key-value “pairs” (Arrays with two elements) to the constructor: const map = new Map([ [1, 'one'], ...
確定! 回上一頁