A tiny utility for checking values in JavaScript
$ npm install @lilylaw/isactual
import isactual from @lilylaw/isactual
or
const isactual = require('@lilylaw/isactual')
- number: return true if input is an actual number value (as a int/float/string) and false if not (i.e. NaN, null, [1]...)
- syntax: isActual.number()
- Folk and clone the repo
- cd into root
$ npm testto build and runs the tests- New test can be written in tests/test.ts
- Add or improve code in src/index.ts
$ npm run buildto rebuild lib
If you find a bug, think of improvements, or want to suggest a new feature please feel free to folk or add an issue or both.