forked from fdzcxy212206413/gsl_grs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
528 B
23 lines
528 B
1 month ago
|
import createMathOperation from './_createMathOperation.js';
|
||
|
|
||
|
/**
|
||
|
* Multiply two numbers.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @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
|
||
|
*/
|
||
|
var multiply = createMathOperation(function(multiplier, multiplicand) {
|
||
|
return multiplier * multiplicand;
|
||
|
}, 1);
|
||
|
|
||
|
export default multiply;
|