Options
All
  • Public
  • Public/Protected
  • All
Menu

Module multiply

Index

References

Functions Math

References

Renames and re-exports multiply

Math Functions

  • multiply<T1, T2>(v1: T1[], multiplicand: T2[]): [T1, T2][]
  • multiply(multiplier: number[], multiplicand: number): number[]
  • multiply(multiplier: number[], multiplicand: any): number[]
  • multiply(multiplier: number, multiplicand: number[]): number[]
  • multiply(multiplier: any, multiplicand: number[]): number[]
  • multiply(multiplier: number, multiplicand: number): number
  • multiply(multiplier: any, multiplicand: any): number
  • multiply(multiplier: any, multiplicand: any): any
  • Multiply two numbers/array.

    since

    5.12.0

    example
    multiply(6, 4)
    // => 24

    multiply(4, [1, 2, 3])
    // => [4, 8, 12]

    multiply([1, 2], ['3', '4'])
    // => [[1, '3'], [1, '4'], [2, '3'], [2, '4']]

    Type Parameters

    • T1

    • T2

    Parameters

    • v1: T1[]
    • multiplicand: T2[]

      The second number in a multiplication.

    Returns [T1, T2][]

    Returns the product.

  • Parameters

    • multiplier: number[]
    • multiplicand: number

    Returns number[]

  • Parameters

    • multiplier: number[]
    • multiplicand: any

    Returns number[]

  • Parameters

    • multiplier: number
    • multiplicand: number[]

    Returns number[]

  • Parameters

    • multiplier: any
    • multiplicand: number[]

    Returns number[]

  • Parameters

    • multiplier: number
    • multiplicand: number

    Returns number

  • Parameters

    • multiplier: any
    • multiplicand: any

    Returns number

  • Parameters

    • multiplier: any
    • multiplicand: any

    Returns any