Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

Const isPositive

  • isPositive(num: number): boolean
  • Checks if the given number is positive.

    example

    isPositive(2); // true isPositive(-3); // false

    Parameters

    • num: number

      The number to check.

    Returns boolean

    Whether the number is positive.

Legend

  • Function

Generated using TypeDoc