Has Own is package from Ganuz library
npm install @ganuz/has-ownHas Own is package from Ganuz library
sh
$ yarn add @ganuz/has-own
`
Or
`sh
$ npm install --save @ganuz/has-own
`Use
Module
`typescript
import {
default as hasOwn
} from '@ganuz/has-own';
`Browser
`html
`
`typescript
let {
hasOwn
} = G;
`Examples
`typescript
hasOwn(null, 'foo'); // throw TypeError
hasOwn(undefined, 0); // throw TypeError
hasOwn('foo', 'toString'); // throw TypeError
hasOwn([], 'length'); // => true
hasOwn(Object, 'create'); // => true
hasOwn({foo: 'bar'}, 'foo'); // => true
hasOwn(Object.create({foo: 'bar'}), 'foo'); // => false
``