Baseline Widely available
Reflect
ë ì¤ê°ìì ê°ë¡ì± ì ìë JavaScript ìì
ì ëí ë©ìë를 ì ê³µíë ë´ì¥ ê°ì²´ì
ëë¤. ë©ìëì ì¢
ë¥ë íë¡ì ì²ë¦¬ê¸°ì ëì¼í©ëë¤. Reflect
ë í¨ì ê°ì²´ê° ìëë¯ë¡ ìì±ìë¡ ì¬ì©í ì ììµëë¤.
ë¤ë¥¸ ëë¶ë¶ì ì ì ê°ì²´ì ë¤ë¥´ê², Reflect
ë ìì±ìê° ìëëë¤. ë°ë¼ì í¨ìì²ë¼ í¸ì¶íê±°ë new
ì°ì°ìë¡ ì¸ì¤í´ì¤ë¥¼ ë§ë¤ ì ììµëë¤. Math
ê°ì²´ì²ë¼, Reflect
ì 모ë ìì±ê³¼ ë©ìëë ì ì ì
ëë¤.
Reflect
ê°ì²´ì ì ì ë©ìë ì´ë¦ì íë¡ì ì²ë¦¬ê¸° ë©ìëì ì´ë¦ê³¼ ê°ìµëë¤.
ì¼ë¶ ë©ìëë Object
ìë ì¡´ì¬íë ë©ìëì´ì§ë§ ì½ê°ì ì°¨ì´ê° ììµëë¤.
Reflect.apply()
ëì í¨ì를 주ì´ì§ 매ê°ë³ìë¡ í¸ì¶í©ëë¤. Function.prototype.apply()
ë ì°¸ê³ íì¸ì.
Reflect.construct()
í¨ìë¡ ì¬ì©íë new
ì°ì°ìì
ëë¤. new target(...args)
ì í¸ì¶íë ê²ê³¼ ê°ìµëë¤. ë¤ë¥¸ íë¡í íì
ì ì§ì íë ì¶ê° 기ë¥ë ê°ì§ê³ ììµëë¤.
Reflect.defineProperty()
Object.defineProperty()
ì ë¹ì·í©ëë¤. Boolean
ì ë°íí©ëë¤.
Reflect.deleteProperty()
í¨ìë¡ ì¬ì©íë delete
ì°ì°ìì
ëë¤. delete target[name]
ì í¸ì¶íë ê²ê³¼ ê°ìµëë¤.
Reflect.get()
ëì ìì±ì ê°ì ë°ííë í¨ìì ëë¤.
Reflect.getOwnPropertyDescriptor()
Object.getOwnPropertyDescriptor()
ì ë¹ì·í©ëë¤. 주ì´ì§ ìì±ì´ ëì ê°ì²´ì ì¡´ì¬íë©´, ê·¸ ìì±ì ìì ì를 ë°íí©ëë¤. ê·¸ë ì§ ìì¼ë©´ undefined
를 ë°íí©ëë¤.
Reflect.getPrototypeOf()
Object.getPrototypeOf()
ì ê°ìµëë¤.
Reflect.has()
í¨ìë¡ ì¬ì©íë in
ì°ì°ìì
ëë¤. ìì ì, í¹ì ììí ìì±ì´ ì¡´ì¬íëì§ ëíë´ë Boolean
ì ë°íí©ëë¤.
Reflect.isExtensible()
Object.isExtensible()
ê³¼ ê°ìµëë¤.
Reflect.ownKeys()
ëì ê°ì²´ì ìì²´ í¤(ììíì§ ìì í¤) 목ë¡ì ë°°ì´ë¡ ë°íí©ëë¤.
Reflect.preventExtensions()
Object.preventExtensions()
ì ë¹ì·í©ëë¤. Boolean
ì ë°íí©ëë¤.
Reflect.set()
ìì±ì ê°ì í ë¹íë í¨ìì
ëë¤. í ë¹ ì±ê³µ ì¬ë¶ë¥¼ ëíë´ë Boolean
ì ë°íí©ëë¤.
Reflect.setPrototypeOf()
ê°ì²´ì íë¡í íì
ì ì§ì íë í¨ìì
ëë¤. ì§ì ì±ê³µ ì¬ë¶ë¥¼ ëíë´ë Boolean
ì ë°íí©ëë¤.
const duck = {
name: "Maurice",
color: "white",
greeting: function () {
console.log(`Quaaaack! My name is ${this.name}`);
},
};
Reflect.has(duck, "color");
// true
Reflect.has(duck, "haircut");
// false
ê°ì²´ ìì²´ í¤ë¥¼ ë°íí기
Reflect.ownKeys(duck);
// [ "name", "color", "greeting" ]
ê°ì²´ì ìë¡ì´ ìì± ì¶ê°í기
Reflect.set(duck, "eyes", "black");
// returns "true" if successful
// "duck" now contains the property "eyes: 'black'"
ë¸ë¼ì°ì í¸íì± ê°ì´ 보기
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