Skip to content

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

Notifications You must be signed in to change notification settings

IdrisKulubi/iszeroorless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published