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