1.1.0 • Published 5 years ago

@yavisht/has-key v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Release GitHub release (latest SemVer) semantic-release

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

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.12

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago