has-own-property

undefined

Has Own Property?

Check if an object has a local property.

Installation

npm install --save has-own-property

Usage

const hasOwnProperty = require('has-own-property')

const obj = { a: 1 }

hasOwnProperty(obj, 'a') // true
hasOwnProperty(obj, 'b') // false

Repository

LinusU/has-own-property