main
Last change
on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
596 bytes
|
Line | |
---|
1 | import { flip, subtract } from 'ramda';
|
---|
2 |
|
---|
3 | /**
|
---|
4 | * Subtracts its first argument from its second argument.
|
---|
5 | *
|
---|
6 | * @func subtractNum
|
---|
7 | * @memberOf RA
|
---|
8 | * @since {@link https://char0n.github.io/ramda-adjunct/2.22.0|v2.22.0}
|
---|
9 | * @category Math
|
---|
10 | * @sig Number -> Number -> Number
|
---|
11 | * @param {number} subtrahend the number to subtract
|
---|
12 | * @param {number} minuend the number to subtract from
|
---|
13 | * @return {number} A number representing the difference of subtracting the subtrahend from the minuend
|
---|
14 | * @example
|
---|
15 | *
|
---|
16 | * RA.subtractNum(3, 5); //=> 2
|
---|
17 | */
|
---|
18 | const subtractNum = flip(subtract);
|
---|
19 |
|
---|
20 | export default subtractNum;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.