npm.io
0.1.1 • Published 7 years ago

@ganuz/get-prototype-of

Licence
MIT
Version
0.1.1
Deps
3
Size
93 kB
Vulns
0
Weekly
0

@ganuz/get-prototype-of

Source Code Version MIT License Bundle Size TypeScript

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.

Keywords