Baseline Widely available
Set
ì¸ì¤í´ì¤ì clear()
ë©ìëë ì´ Setì 모ë ìì를 ìì í©ëë¤.
const set1 = new Set();
set1.add(1);
set1.add("foo");
console.log(set1.size);
// Expected output: 2
set1.clear();
console.log(set1.size);
// Expected output: 0
구문 매ê°ë³ì
ìì.
ë°í ê°ìì (undefined
).
clear()
ì¬ì©í기
const mySet = new Set();
mySet.add(1);
mySet.add("foo");
console.log(mySet.size); // 2
console.log(mySet.has("foo")); // true
mySet.clear();
console.log(mySet.size); // 0
console.log(mySet.has("foo")); // false
ëª
ì¸ì ë¸ë¼ì°ì í¸íì± ê°ì´ 보기
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