key-exists

Check if object has property, super fast

Usage no npm install needed!

<script type="module">
  import keyExists from 'https://cdn.skypack.dev/key-exists';
</script>

README

key-exists

CircleCI NPM Downloads node License MIT

Check if Object has Property, super fast

Highlights

  • Super Fast

  • Written in Typescript

Usage


import keyExists from 'key-exists';

const greet = {
  hello: 'world',
  bonjour: 'le monde'
  };

keyExists(greet, 'hello'); // true
keyExists(greet, 'bye'); // false

License

MIT © Nivrith Mandayam Gomatam