get-prototype-of-x

2.1.2 • Public • Published

Travis status Dependency status devDependency status npm version jsDelivr hits bettercodehub score Coverage Status

get-prototype-of-x

Sham for Object.getPrototypeOf

module.exportsObject

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

import getPrototypeOf from 'get-prototype-of-x';
 
console.log(getPrototypeOf('foo')); // String.prototype

Package Sidebar

Install

npm i get-prototype-of-x

Weekly Downloads

202

Version

2.1.2

License

MIT

Unpacked Size

193 kB

Total Files

11

Last publish

Collaborators

  • xotic750