Last change
on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
530 bytes
|
Line | |
---|
1 | var createMathOperation = require('./_createMathOperation');
|
---|
2 |
|
---|
3 | /**
|
---|
4 | * Multiply two numbers.
|
---|
5 | *
|
---|
6 | * @static
|
---|
7 | * @memberOf _
|
---|
8 | * @since 4.7.0
|
---|
9 | * @category Math
|
---|
10 | * @param {number} multiplier The first number in a multiplication.
|
---|
11 | * @param {number} multiplicand The second number in a multiplication.
|
---|
12 | * @returns {number} Returns the product.
|
---|
13 | * @example
|
---|
14 | *
|
---|
15 | * _.multiply(6, 4);
|
---|
16 | * // => 24
|
---|
17 | */
|
---|
18 | var multiply = createMathOperation(function(multiplier, multiplicand) {
|
---|
19 | return multiplier * multiplicand;
|
---|
20 | }, 1);
|
---|
21 |
|
---|
22 | module.exports = multiply;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.