Baseline 2024
Newly available
Set
ì¸ì¤í´ì¤ì difference()
ë©ìëë ì§í©ì ë°ìì ì´ ì§í©ìë ìì§ë§ 주ì´ì§ ì§í©ìë ìë ìì를 í¬í¨íë ìë¡ì´ ì§í©ì ë°íí©ëë¤.
other
Set
ê°ì²´ í¹ì ì ì¬ ì§í© ê°ì²´
ì´ ì§í©ìë ìì§ë§ other
ì§í©ìë ìë ìì를 í¬í¨íë ì Set
ê°ì²´ì
ëë¤.
ìíì í기ë²ìì ì°¨ì§í©(difference)ë ë¤ìê³¼ ê°ì´ ì ìë©ëë¤.
A â B = { x â A ⣠x â B } A\setminus B = {x\in A\mid x\notin B}벤 ë¤ì´ì´ê·¸ë¨ì ì¬ì©íìë©´
difference()
ë ì ì¬ ì§í©ê°ì²´ë¥¼ other
매ê°ë³ìë¡ ë°ìµëë¤. ì¬ì©ì ì½ë를 í¸ì¶íì§ ìê³ this
ì ì ì¥ë 기본 ë°ì´í°ë¥¼ ì§ì ê²ìí기 ë문ì ì¤ì Set
ì¸ì¤í´ì¤ê° ë기 ìí´ this
ê° íìí©ëë¤. ê·¸ë° ë¤ì ëìì this
ì other
ì í¬ê¸°ì ë°ë¼ ë¬ë¼ì§ëë¤.
this
ì other.size
ë³´ë¤ ë ë§ì ììê° ìì¼ë©´ other.size
ì keys()
ë©ìë를 í¸ì¶íì¬ other
ì ìííê³ other
ì íìëì§ ìë 모ë ììë¡ ì ì§í©ì 구ì±í©ëë¤.this
ì ìì를 ìííê³ other.has(e)
ê° ê±°ì§ ê°ì ê°ì ë°ííê² ë§ëë 모ë ìì e
를 í¬í¨íë ì ì§í©ì 구ì±í©ëë¤.ë°íë ì§í©ì ìì ììë this
ì ëì¼í©ëë¤.
ìë ìì ë íì ì§í©(<10)ê³¼ ìì ì ê³± ì§í©(<10)ì ì°¨ì´ë¥¼ ê³ì°íë ìì ì ëë¤. ê²°ê³¼ë ìì ì ê³±ì´ ìë íì ì§í©ì ëë¤.
const odds = new Set([1, 3, 5, 7, 9]);
const squares = new Set([1, 4, 9]);
console.log(odds.difference(squares)); // Set(3) { 3, 5, 7 }
ëª
ì¸ì ë¸ë¼ì°ì í¸íì± ê°ì´ 보기
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