# multiply

# Description

两个数相乘。

# Params

(multiplier, multiplicand)

# Return

number

# Depend

import createMathOperation from './.internal/createMathOperation.js'

createMathOperation 源码分析

# Code

const multiply = createMathOperation((multiplier, multiplicand) => multiplier * multiplicand, 1)

# Analyze

divide 一致,只不过operator函数换成了乘法

# Remark

  1. 乘法 (*) (opens new window)

# Example

multiply(6, 4) // => 24