|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
506 bytes
|
| Rev | Line | |
|---|
| [a762898] | 1 | /**
|
|---|
| 2 | * Subtracts one number from another.
|
|---|
| 3 | *
|
|---|
| 4 | * If either of the numbers is `NaN`, the function returns `NaN`.
|
|---|
| 5 | *
|
|---|
| 6 | * @param {number} value The first number. (minuend)
|
|---|
| 7 | * @param {number} other The second number.(subtrahend)
|
|---|
| 8 | * @returns {number} The difference of the two numbers, or `NaN` if any input is `NaN`.
|
|---|
| 9 | *
|
|---|
| 10 | * @example
|
|---|
| 11 | * subtract(6, 3); // => 3
|
|---|
| 12 | * subtract(6, NaN); // => NaN
|
|---|
| 13 | * subtract(NaN, 3); // => NaN
|
|---|
| 14 | */
|
|---|
| 15 | declare function subtract(value: number, other: number): number;
|
|---|
| 16 |
|
|---|
| 17 | export { subtract };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.