hasvalue

Check if a value exists at a nested property path

Usage no npm install needed!

<script type="module">
  import hasvalue from 'https://cdn.skypack.dev/hasvalue';
</script>

README

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