A simple TypeScript utility package to check if a number is zero or less.
npm install iszero-or-less
import isZeroOrLess from 'iszero-or-less';
isZeroOrLess(0); // true
isZeroOrLess(-1); // true
isZeroOrLess(1); // false
Returns true
if the input number is less than or equal to zero, false
otherwise.
npm test
npm run build
- Update version in
package.json
- Build the package:
npm run build
- Run tests:
npm test
- Publish to npm:
npm publish
MIT