@f/has
v1.0.1
Published
Safe, functional hasOwnProperty
Readme
has
Safe, functional hasOwnProperty
Installation
$ npm install @f/hasUsage
var has = require('@f/has')
var cache = {}
function isCached (id) {
return has(id, cache)
}API
has(prop, obj)
prop- The property who's existence to checkobj- The object on which to check the property
Returns: Boolean value indicating whether or not the property exists.
License
MIT
