Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 1001 Bytes

README.md

File metadata and controls

24 lines (14 loc) · 1001 Bytes

prototype-of

This library is for setPrototypeOf ECMA 6 and getPrototypeOf ECMA 5 javascript function implementations. That's because, unfortunately, the 'set', there is still nowhere to be implemented natively. The accompanying 'set' works on all browsers supporting ECMA 5. Compatible up to (the isPrototypeOf ECMA 3 to complete the picture) - the 'get' all the way ECMA 3

###Links

setPrototypeOf

getPrototypeOf

isPrototypeOf

###Example

var obj1 = {};

var obj2 = Object.setPrototypeOf({},obj1);

obj1 === Object.getPrototypeOf(obj2); // true

obj1.isPrototypeOf(obj2); // true