@ganuz/get-prototype-of
v0.1.1
Published
Get Prototype Of is package from Ganuz library
Downloads
15
Maintainers
Readme
@ganuz/get-prototype-of
Get Prototype Of is package from Ganuz library
Install
$ yarn add @ganuz/get-prototype-of
Or
$ npm install --save @ganuz/get-prototype-of
Use
Module
import {
default as getPrototypeOf
} from '@ganuz/get-prototype-of';
Browser
<script src="https://unpkg.com/@ganuz/get-prototype-of/bundle.umd.min.js"></script>
let {
getPrototypeOf
} = G;
Examples
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
@ganuz/get-prototype-of/polyfill
Module
import '@ganuz/get-prototype-of/polyfill';
Browser
<script src="https://unpkg.com/@ganuz/get-prototype-of/polyfill/bundle.umd.min.js"></script>
License
Copyright © Yisrael Eliev, Licensed under the MIT license.