GoScrobble/web/node_modules/lodash-es/multiply.js

23 lines
528 B
JavaScript
Raw Normal View History

2022-04-25 02:47:15 +00:00
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;