get-prototype-of-x
Sham for Object.getPrototypeOf
Version: 1.1.0
Author: Xotic750 Xotic750@gmail.com
License: MIT
Copyright: Xotic750
module.exports
⇒ Object
⏏
This method returns the prototype (i.e. the value of the internal [[Prototype]] property)
of the specified object.
Kind: Exported member
Returns: Object
- The prototype of the given object. If there are no inherited properties, null is returned.
Param | Type | Description |
---|
obj | * | The object whose prototype is to be returned. |
Example
var getPrototypeOf = require('get-prototype-of-x');
getPrototypeOf('foo');