node package manager

hasvalue

Hasvalue

NPM version NPM downloads Build status Test coverage

Check if a value exists at a nested property path.

Installation

npm install hasvalue --save

Usage

import { has } from 'hasvalue'
 
const obj = { a: { b: { c: 10 } } }
 
has(obj, ['a', 'b', 'c']) //=> true 

License

Apache 2.0