Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
18 lines (16 sloc)
488 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import createMathOperation from './.internal/createMathOperation.js' | |
/** | |
* Multiply two numbers. | |
* | |
* @since 4.7.0 | |
* @category Math | |
* @param {number} multiplier The first number in a multiplication. | |
* @param {number} multiplicand The second number in a multiplication. | |
* @returns {number} Returns the product. | |
* @example | |
* | |
* multiply(6, 4) | |
* // => 24 | |
*/ | |
const multiply = createMathOperation((multiplier, multiplicand) => multiplier * multiplicand, 1) | |
export default multiply |