@sstephant/has

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @sstephant/has

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • sstephant