@yavisht/has-key
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "@yavisht/has-key", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Returns true if the object has a key", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,2 +7,11 @@ | ||
## Installation | ||
// For npm | ||
npm i @yavisht/has-key | ||
// For yarn | ||
yarn add @yavisht/has-key | ||
## Usage | ||
@@ -16,2 +25,2 @@ | ||
// returns false | ||
console.log(hasKey({foo:'bar'}, 'bar')) | ||
console.log(hasKey({foo:'bar'}, 'bar')) |
2809
25