Options
All
  • Public
  • Public/Protected
  • All
Menu

Module subtract

Index

References

Functions Math

References

Renames and re-exports subtract

Math Functions

  • subtract(minuend: string, subtrahend: string): number
  • subtract(minuend: number, subtrahend: number): number
  • subtract<T>(minuend: T, subtrahend: T): T
  • Subtract two numbers.

    since

    5.10.0

    example
    subtract(6, 4)
    // => 2

    Parameters

    • minuend: string

      The first number in a subtraction.

    • subtrahend: string

      The second number in a subtraction.

    Returns number

    Returns the difference.

  • Parameters

    • minuend: number
    • subtrahend: number

    Returns number

  • Type parameters

    • T

    Parameters

    • minuend: T
    • subtrahend: T

    Returns T