You can use an Array (or any iterable) with [key, value] pairs to set up the initial data in the Map: const map = new Map ([ [ 1 , 'one' ], [ 2 , 'two' ] ...
確定! 回上一頁