0.1.1 • Published 5 years ago

@ganuz/get-prototype-of v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

@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.