Function multiply

  • Multiply two numbers/array.

    Type Parameters

    • T1
    • T2

    Parameters

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

      The second number in a multiplication.

    Returns [T1, T2][]

    Returns the product.

    5.12.0

    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']]
  • 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