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']]
  • Multiply two numbers/array.

    Parameters

    • multiplier: number[]

      The first number in a multiplication.

    • multiplicand: number

      The second number in a multiplication.

    Returns number[]

    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']]
  • Multiply two numbers/array.

    Parameters

    • multiplier: number[]

      The first number in a multiplication.

    • multiplicand: any

      The second number in a multiplication.

    Returns number[]

    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']]
  • Multiply two numbers/array.

    Parameters

    • multiplier: number

      The first number in a multiplication.

    • multiplicand: number[]

      The second number in a multiplication.

    Returns number[]

    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']]
  • Multiply two numbers/array.

    Parameters

    • multiplier: any

      The first number in a multiplication.

    • multiplicand: number[]

      The second number in a multiplication.

    Returns number[]

    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']]
  • Multiply two numbers/array.

    Parameters

    • multiplier: number

      The first number in a multiplication.

    • multiplicand: number

      The second number in a multiplication.

    Returns number

    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']]
  • Multiply two numbers/array.

    Parameters

    • multiplier: any

      The first number in a multiplication.

    • multiplicand: any

      The second number in a multiplication.

    Returns number

    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']]
  • Multiply two numbers/array.

    Parameters

    • multiplier: any

      The first number in a multiplication.

    • multiplicand: any

      The second number in a multiplication.

    Returns any

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