@f/has

1.0.1 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    194
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    194
  • 1.0.0
    0

Package Sidebar

Install

npm i @f/has

Weekly Downloads

158

Version

1.0.1

License

MIT

Last publish

Collaborators

  • f