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:
591 bytes
|
Line | |
---|
1 | import { divide, flip } from 'ramda';
|
---|
2 |
|
---|
3 | /**
|
---|
4 | * Divides two numbers, where the second number is divided by the first number.
|
---|
5 | *
|
---|
6 | * @func divideNum
|
---|
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} divisor the number to divide by
|
---|
12 | * @param {number} dividend the number to divide
|
---|
13 | * @return {number} A number representing the quotient of dividing the dividend by the divisor
|
---|
14 | * @example
|
---|
15 | *
|
---|
16 | * RA.divideNum(2, 1); //=> 0.5
|
---|
17 | */
|
---|
18 | const divideNum = flip(divide);
|
---|
19 |
|
---|
20 | export default divideNum;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.