We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined
null
如果 iterable 存在,它应该是一个实现了 @@iterator 方法的对象。该方法能返回一个迭代对象,产生一个具有两位元素的 类数组对象。第一个元素作为 Map 的 key,第二个元素作为 value。
Map
初始值为 %Map.prototype%
属性描述符为:{ [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }
{ [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }
this
true
false
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Map对象
构造器
Map ( [ iterable ] )
undefined
,抛 TypeError 异常undefined
或null
,返回 map构造器上的属性
Map.prototype
初始值为 %Map.prototype%
属性描述符为:
{ [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }
Map原型对象上的属性
Map.prototype.clear ( )
this
值undefined
Map.prototype.delete ( key )
this
值true
,true
false
Map.prototype.entries ( )
this
值Map.prototype.forEach ( callbackfn [ , thisArg ] )
this
值undefined
Map.prototype.get ( key )
this
值true
,返回 p.[[Value]]undefined
Map.prototype.has ( key )
this
值true
,返回true
false
Map.prototype.keys ( )
this
值Map.prototype.set ( key, value )
this
值true
,Map.prototype.values ( )
this
值get Map.prototype.size
this
值Map Iterator Objects
CreateMapIterator ( map, kind )
%MapIteratorPrototype% 对象
Map
迭代对象都继承它的属性The text was updated successfully, but these errors were encountered: