Skip to content

This library is for setPrototypeOf ECMA 6 and getPrototypeOf ECMA 5 javascript function implementations

License

Notifications You must be signed in to change notification settings

BencoXX/prototype-of

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

This library is for setPrototypeOf ECMA 6 and getPrototypeOf ECMA 5 javascript function implementations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published