@ganuz/get-prototype-of
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

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

Package Sidebar

Install

npm i @ganuz/get-prototype-of

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

95.2 kB

Total Files

27

Last publish

Collaborators

  • yisraelx