getPrototypeOf()
Prototipni qidirishni tutib oladi.
Misol
getPrototypeOf(obj) {
return Reflect.getPrototypeOf(obj);
}
Nima ishga tushiradi:
Object.getPrototypeOf()
Parametrlar
- obj - maqsad obyekt
Qaytarishi shart
- Obyekt
- null
Proxy handler metodlari:
handler.apply()
handler.construct()
handler.defineProperty()
handler.deleteProperty()
handler.get()
handler.getOwnPropertyDescriptor()
handler.getPrototypeOf()
handler.has()
handler.isExtensible()
handler.ownKeys()
handler.preventExtensions()
handler.set()
handler.setPrototypeOf()
Brauzerlarda qo‘llab-quvvatlash
handler.getPrototypeOf() — ECMAScript6 (ES6 2015) imkoniyati.
JavaScript 2015 2017-yil iyunidan beri barcha brauzerlarda qo‘llab-quvvatlanadi:
| Chrome 51 |
Edge 15 |
Firefox 54 |
Safari 10 |
Opera 38 |
| 2016-yil may | 2017-yil aprel | 2017-yil iyun | 2016-yil sentabr | 2016-yil iyun |
W3Schools Pathfinder
Yutuqlaringizni kuzating – bu bepul!
