@ganuz/get-property-owner
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.