npm.io
1.0.1 • Published 10 years ago

@f/has

Licence
MIT
Version
1.0.1
Deps
0
Vulns
0
Weekly
0

has

Build status Git tag NPM version Code style

Safe, functional hasOwnProperty

Installation

$ npm install @f/has

Usage

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 check
  • obj - The object on which to check the property

Returns: Boolean value indicating whether or not the property exists.

License

MIT