A constant value representing NaN
npm install @typeforce/nan[license-shield-url]: https://img.shields.io/github/license/Typeforce-JS/nan.svg?style=flat-square
[license-url]: https://github.com/Typeforce-JS/nan/blob/master/LICENSE
[npm-downloads-shield-url]: https://img.shields.io/npm/dt/@typeforce/nan.svg?style=flat-square
[npm-version-shield-url]: https://img.shields.io/npm/v/@typeforce/nan.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/@typeforce/nan
[unpkg-shield-url]: https://img.shields.io/badge/unpkg-up--to--date-brightgreen.svg?style=flat-square
[unpkg-url]: https://unpkg.com/@typeforce/nan/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]
A constant value representing NaN (not-a-number).
``shell`
npm install @typeforce/nan --save # Install package via NPM
`javascript
import { expect } from "chai";
import nan from "@typeforce/nan";
// The constant can be accessed directly:
expect(nan.nan).to.be.NaN;
// Or it can be calculated:
expect(nan.calculate()).to.be.NaN;
`
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.
npm test # Run tests.
Refer to the LICENSE` file for license information.