Skip to content

sstephant/has

Repository files navigation

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

About

Shortcut for hasOwnProperty

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published