Baseline Widely available
Set
ì¸ì¤í´ì¤ì size
ì ê·¼ì ìì±ì ì´ ì§í©ì (ê³ ì í) ììì ì를 ë°íí©ëë¤.
const set1 = new Set();
const object1 = {};
set1.add(42);
set1.add("forty two");
set1.add("forty two");
set1.add(object1);
console.log(set1.size);
// Expected output: 3
ì¤ëª
size
ì ê°ì Set
ê°ì²´ê° ì¼ë§ë ë§ì ê°ì²´ë¥¼ ê°ì¡ëì§ ëíë´ë ì ì ê°ì
ëë¤. size
ì ì¤ì ìë undefined
ì
ëë¤. ì¦, ì´ ìì±ì ë³ê²½í ì ììµëë¤.
size
ì¬ì©í기
const mySet = new Set();
mySet.add(1);
mySet.add(5);
mySet.add("some text");
console.log(mySet.size); // 3
ëª
ì¸ì ë¸ë¼ì°ì í¸íì± ê°ì´ 보기
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4