Baseline Widely available
Set
ì¸ì¤í´ì¤ì add()
ë©ìëë ê°ì ê°ì¸ ììê° ì´ Setì ìë¤ë©´ ì§ì ë ê°ê³¼ í¨ê» ìë¡ì´ ìì를 ì´ Setì ì½ì
í©ëë¤.
const set1 = new Set();
set1.add(42);
set1.add(42);
set1.add(13);
for (const item of set1) {
console.log(item);
// Expected output: 42
// Expected output: 13
}
구문 매ê°ë³ì
value
Set
ê°ì²´ì ì¶ê°í ììì ê°.
ì¶ê°ë ê°ì´ í¬í¨ë Set
ê°ì²´.
add
ë©ìë ì¬ì©í기
const mySet = new Set();
mySet.add(1);
mySet.add(5).add("some text"); // ê³ì ë¶ì¼ ì ìì
console.log(mySet);
// Set [1, 5, "some text"]
ëª
ì¸ì ë¸ë¼ì°ì í¸íì± ê°ì´ 보기
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