@f/has

Safe, functional hasOwnProperty

Stats

StarsIssuesVersionUpdatedCreatedSize
@f/has
001.0.15 years ago6 years agoMinified + gzip package size for @f/has in KB

Readme

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.