1.0.1 • Published 8 years ago
@sstephant/has v1.0.1
has
Simple wrapper for Object.hasOwnProperty function
Installation:
npm install @sstephant/has --save
Usage:
const has = require('has');
const obj = { prop: 'MyProp' };
const hasProp = has(obj, 'prop')) // true
const hasOtherProp = has(obj, 'otherProp')) // false