Set.prototype.size
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
Set
实例的 size
访问器属性返回该集合中(唯一)元素的数量。
¥The size
accessor property of Set
instances returns the number of (unique) elements in this set.
Try it
描述
示例
使用尺寸
规范
Specification |
---|
ECMAScript Language Specification # sec-get-set.prototype.size |
浏览器兼容性
BCD tables only load in the browser
也可以看看
¥See also