Get Prototype Of is package from Ganuz library
npm install @ganuz/get-prototype-ofGet Prototype Of is package from Ganuz library
sh
$ yarn add @ganuz/get-prototype-of
`
Or
`sh
$ npm install --save @ganuz/get-prototype-of
`Use
Module
`typescript
import {
default as getPrototypeOf
} from '@ganuz/get-prototype-of';
`Browser
`html
`
`typescript
let {
getPrototypeOf
} = G;
`Examples
`typescript
getPrototypeOf(null); // throw TypeError
getPrototypeOf(1); // throw TypeError
getPrototypeOf(Object.create(null)); // => null
getPrototypeOf(Object.create({foo: 'bar'})); // => Object{foo: 'bar'}
getPrototypeOf(Object('foo')); // => String.prototype
getPrototypeOf({}); // => Object.prototype
`$3
Module
`typescript
import '@ganuz/get-prototype-of/polyfill';
`Browser
`html
``