@f/has

Safe, functional hasOwnProperty

  • @f/has

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@f/has
001.0.17 years ago7 years agoMinified + gzip package size for @f/has in KB

Readme

has
!Build statustravis-imagetravis-url !Git taggit-imagegit-url !NPM versionnpm-imagenpm-url !Code stylestandard-imagestandard-url Safe, functional hasOwnProperty

Installation

$ npm install @f/has

Usage

```js 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