@dan73/is-positive
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

first-npm-package

Check if the given number is positive

Installation

$ npm install @dan73/is-positive

or

$ yarn add @dan73/is-positive

Usage

You need to import isPositiveNumber from @dan73/is-positive

import { isPositiveNumber } from "@dan73/is-positive";

console.log(isPositiveNumber(-40)); // false

Keywords

  • typescript
  • positive
  • number

Package Sidebar

Install

npm i @dan73/is-positive

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

1.6 kB

Total Files

6

Last publish

Collaborators

  • dan73