1.0.2 • Published 7 months ago

iszero-or-less v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

iszeroorless

A simple TypeScript utility package to check if a number is zero or less.

Installation

npm install iszero-or-less

Usage

import isZeroOrLess from 'iszero-or-less';

isZeroOrLess(0); // true
isZeroOrLess(-1); // true
isZeroOrLess(1); // false

API

isZeroOrLess(num: number): boolean

Returns true if the input number is less than or equal to zero, false otherwise.

Running Tests

npm test

Building

npm run build

Publishing

  1. Update version in package.json
  2. Build the package: npm run build
  3. Run tests: npm test
  4. Publish to npm: npm publish

License

MIT

1.0.2

7 months ago

1.0.0

7 months ago

1.0.1

7 months ago