keys-in
Simple object key existence check Library
Installation
# use NPM $ npm install -S keys-in # use Yarn $ yarn add keys-in
Usage
keysIn(payload: object, keys: string[]): boolean
const payload = name: 'potato4d' const keys = 'name' 'email' console// false payloademail = 'mail@potato4d.me' console// true
Contribution
# Install package $ yarn # Run test $ yarn test # Run test with coverage $ yarn test:coverage
LICENSE
MIT