Options
All
  • Public
  • Public/Protected
  • All
Menu

Module math

Index

Functions

add

  • add(augend: number, addend: number): number

ceil

  • ceil(num: number, precision?: number): any

divide

  • divide(dividend: number, divisor: number): number

floor

  • floor(num: number, precision?: number): any

max

  • max(arr: any): number

maxBy

  • maxBy(arr: any, fn: any): any

mean

  • mean(arr: any): number

meanBy

  • meanBy(arr: any, fn: any): number

min

  • min(arr: any): number

minBy

  • minBy(arr: any, fn: any): any

mod

  • mod(a: number, b: number): number
  • Perform a modulus operation between two numbers.

    Parameters

    • a: number
    • b: number

    Returns number

multiply

  • multiply(multiplier: number, multiplicand: number): number

round

  • round(num: number, precision?: number): any

subtract

  • subtract(minuend: number, subtrahend: number): number

sum

  • sum(arr: any): any

sumBy

  • sumBy(arr: any, fn: any): any

Generated using TypeDoc