0.1.1 • Published 6 years ago

@ganuz/get-property-owner v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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