Map() 构造函数
Map()
构造函数 创建 Map
对象.
语法
new Map([iterable])
参数
示例
let myMap = new Map([
[1, 'one'],
[2, 'two'],
[3, 'three'],
])
Specifications
Specification |
---|
ECMAScript (ECMA-262) Map constructor |
Browser compatibility
BCD tables only load in the browser