Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

Const isNegative

  • isNegative(num: number): boolean
  • Checks if the given number is negative.

    example

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

    Parameters

    • num: number

      The number to check.

    Returns boolean

    Whether the number is negative.

Legend

  • Function

Generated using TypeDoc