1.0.0 • Published 7 years ago
object-key-exists v1.0.0
object-key-exists

Check if key exists in a javascript object
Installation
$ npm install --save object-key-exists
Usage
const objectKeyExists = require('object-key-exists');
let object = {
version: 1,
name: 'api docs'
};
// Object
// Key to check for.
objectKeyExists.exists(object,'name');
// returns true
License
Apache-2.0 © Robert James Gabriel
1.0.0
7 years ago