Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@yavisht/has-key

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yavisht/has-key

Returns true if the object has a key

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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'))

FAQs

Package last updated on 24 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc