Determine if a value is not `undefined` or `null`
npm install @typeforce/is-value[license-shield-url]: https://img.shields.io/github/license/typeforce-js/is-value.svg?style=flat-square
[license-url]: https://github.com/Typeforce-JS/is-value/blob/master/LICENSE
[npm-downloads-shield-url]: https://img.shields.io/npm/dt/@typeforce/is-value.svg?style=flat-square
[npm-version-shield-url]: https://img.shields.io/npm/v/@typeforce/is-value.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/@typeforce/is-value
[unpkg-shield-url]: https://img.shields.io/badge/unpkg-up--to--date-brightgreen.svg?style=flat-square
[unpkg-url]: https://unpkg.com/@typeforce/is-value/dist/index.min.js
[![NPM][npm-version-shield-url]][npm-url]
[![NPM][npm-downloads-shield-url]][npm-url]
[![CDN][unpkg-shield-url]][unpkg-url]
[![LICENSE][license-shield-url]][license-url]
Determine if a value is not undefined or null.
``shell`
npm install @typeforce/is-value --save # Install package via NPM
`javascript
import { expect } from "chai";
import isValue from "@typeforce/is-value";
expect(isValue(({ x: 42 }).y)).to.be.true;
expect(isValue(false)).to.be.true;
expect(isValue(42)).to.be.true;
expect(isValue(undefined)).to.be.false;
expect(isValue(null)).to.be.false;
`
This package contains TypeScript type declarations.
This package can be imported via unpkg as demonstrated
below.
`html`
This package uses Gulp for building, and Chai
and Mocha for testing.
`shell`
npm install # Installs dependencies.
npm run build # Build the project.
`shell`
npm test # Run tests.
Refer to the LICENSE` file for license information.