1.1.0 • Published 4 years ago
@yavisht/has-key v1.1.0
HasKey - Does the object have the key?
A simple util that will return true or false if the specified key is present in the object supplied.
What's New?
Package now available on NPM and Github Package Registry
Installation
// NPM
npm i @yavisht/has-key
// Yarn
yarn add @yavisht/has-key
Usage
// require example
const hasKey = require('@yavisht/has-key')
// import example
import hasKey from '@yavisht/has-key'
// returns true
console.log(hasKey({foo:'bar'}, 'foo'))
// returns false
console.log(hasKey({foo:'bar'}, 'bar'))
1.1.0
4 years ago
1.0.19
4 years ago
1.0.18
4 years ago
1.0.17
4 years ago
1.0.16
4 years ago
1.0.15
4 years ago
1.0.14
4 years ago
1.0.13
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.11
4 years ago
1.0.10
4 years ago
1.0.12
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago