main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
650 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | import _curry2 from "./internal/_curry2.js";
|
---|
| 2 | /**
|
---|
| 3 | * Multiplies two numbers. Equivalent to `a * b` but curried.
|
---|
| 4 | *
|
---|
| 5 | * @func
|
---|
| 6 | * @memberOf R
|
---|
| 7 | * @since v0.1.0
|
---|
| 8 | * @category Math
|
---|
| 9 | * @sig Number -> Number -> Number
|
---|
| 10 | * @param {Number} a The first value.
|
---|
| 11 | * @param {Number} b The second value.
|
---|
| 12 | * @return {Number} The result of `a * b`.
|
---|
| 13 | * @see R.divide
|
---|
| 14 | * @example
|
---|
| 15 | *
|
---|
| 16 | * const double = R.multiply(2);
|
---|
| 17 | * const triple = R.multiply(3);
|
---|
| 18 | * double(3); //=> 6
|
---|
| 19 | * triple(4); //=> 12
|
---|
| 20 | * R.multiply(2, 5); //=> 10
|
---|
| 21 | */
|
---|
| 22 |
|
---|
| 23 | var multiply =
|
---|
| 24 | /*#__PURE__*/
|
---|
| 25 | _curry2(function multiply(a, b) {
|
---|
| 26 | return a * b;
|
---|
| 27 | });
|
---|
| 28 |
|
---|
| 29 | export default multiply; |
---|
Note:
See
TracBrowser
for help on using the repository browser.