has

Object.prototype.hasOwnProperty.call shortcut

Usage no npm install needed!

<script type="module">
  import has from 'https://cdn.skypack.dev/has';
</script>

README

has

Object.prototype.hasOwnProperty.call shortcut

Installation

npm install --save has

Usage

var has = require('has');

has({}, 'hasOwnProperty'); // false
has(Object.prototype, 'hasOwnProperty'); // true