Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Object.getPrototypeOf()

This article needs an editorial review. How you can help.

This translation is incomplete. Please help translate this article from English.

Object.getPrototypeOf() metodu, belirtilen nesnenin prototipini döndürür.

Syntax

Object.getPrototypeOf(nesne)

Parametreler

nesne
Prototipi döndürülecek olan nesne.

Örnekler

var proto = {};
var nesne = Object.create(proto);
Object.getPrototypeOf(nesne) === proto; // true

Notlar

ES5'te, nesne parametresi bir nesne değilse sistem bir TypeError fırlatır. ES6'da ise, parametre bir nesne olmaya zorlanır.

Object.getPrototypeOf("foo");
// TypeError: "foo" bir nesne değil (ES5 kodu)
Object.getPrototypeOf("foo");
// String.prototype                 (ES6 kodu)

Specifications

Specification Durum Yorum
ECMAScript 5.1 (ECMA-262)
The definition of 'Object.getPrototypeOf' in that specification.
Standard İlk tanımlama.
ECMAScript 2015 (6th Edition, ECMA-262)
The definition of 'Object.getProtoypeOf' in that specification.
Standard  
ECMAScript 2017 Draft (ECMA-262)
The definition of 'Object.getProtoypeOf' in that specification.
Draft  

Tarayıcı Uyumluluğu

Özellik Chrome Firefox (Gecko) Internet Explorer Opera Safari
Temel destek 5 3.5 (1.9.1) 9 12.10 5
Özellik Android Android için Chrome Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Temel destek ? ? ? ? ? ?

Opera'ya özel notlar

Eski Opera versiyonları Object.getPrototypeOf() fonksiyonunu desteklemiyor olsa da, Opera, 10.50 sürümünden beri standartlarda yer almayan __proto__ özelliğini desteklemektedir.

Bunlara da göz atın

Document Tags and Contributors

 Contributors to this page: hkan
 Last updated by: hkan,