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