Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
d

deep-exists

deep checking for existence

latest
65

Supply Chain Security

100

Vulnerability

63

Quality

77

Maintenance

100

License

Unpopular package

Quality

This package is not very popular.

Found 1 instance in 1 package

Version
1.0.1
Version published
Maintainers
1
Created
Issues + PRs
1

deep-exists

Easy checking for existence. Returns true if value is not null or undefined.


import exists from 'deep-exists'

const a = {
  b: {
    c: 4,
    d: null
  }
}

exists(a) // true
exists(a, 'b') // true
exists(a, 'c') // false
exists(a, 'c.a') // false
exists(a, 'b.c') // true
exists(a, 'b.d') // false
exists(a, 'b.e') // false

Keywords

FAQs

Package last updated on 07 Jan 2016

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