@amphibian/object-has-property

hasOwnProperty check

Usage no npm install needed!

<script type="module">
  import amphibianObjectHasProperty from 'https://cdn.skypack.dev/@amphibian/object-has-property';
</script>

README

object-has-property

hasOwnProperty check

npm install @amphibian/object-has-property
var objectHasProperty = require('@amphibian/object-has-property');

objectHasProperty({fish: true}, 'fish'); // > true
objectHasProperty({apples: true}, 'fish'); // > false