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

0.1.1 • Public • Published

@ganuz/get-property-owner

Source Code Version MIT License Bundle Size TypeScript

Get Property Owner is package from Ganuz library

Install

$ yarn add @ganuz/get-property-owner

Or

$ npm install --save @ganuz/get-property-owner

Use

Module

import {
  default as getPropertyOwner
} from '@ganuz/get-property-owner';

Browser

<script src="https://unpkg.com/@ganuz/get-property-owner/bundle.umd.min.js"></script>
let {
  getPropertyOwner
} = G;

Examples

 getPropertyOwner(null, 'prop'); // throw TypeError
 getPropertyOwner(Object, 'create'); // Object
 getPropertyOwner(async function() {}, 'bind'); // => Function.prototype
 getPropertyOwner({}, 'foo'); // => null
 getPropertyOwner(Object.create(null), 'hasOwnProperty'); // => null

License

Copyright © Yisrael Eliev, Licensed under the MIT license.

Package Sidebar

Install

npm i @ganuz/get-property-owner

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

66.1 kB

Total Files

15

Last publish

Collaborators

  • yisraelx