Variables
Const add
add: { (left: number, right: number): number; (left: number): (right: number) => number } = curry((left: number, right: number): number => left + right) as {(left: number, right: number): number(left: number): (right: number) => number}
Type declaration
-
- (left: number, right: number): number
- (left: number): (right: number) => number
-
Parameters
-
left: number
-
right: number
Returns number
-
Parameters
Returns (right: number) => number
-
-
Parameters
Returns number
Const between
between: { (from: number, to: number, num: number): number; (from: number, to: number): (num: number) => number; (from: number): { (to: number, num: number): number; (to: number): (num: number) => number } } = curry((from: number, to: number, num: number): number => Math.min(to, Math.max(from, num))) as {(from: number, to: number, num: number): number(from: number, to: number): (num: number) => number(from: number): {(to: number, num: number): number(to: number): (num: number) => number}}
Type declaration
-
- (from: number, to: number, num: number): number
- (from: number, to: number): (num: number) => number
- (from: number): { (to: number, num: number): number; (to: number): (num: number) => number }
-
Parameters
-
from: number
-
to: number
-
num: number
Returns number
-
Parameters
Returns (num: number) => number
-
-
Parameters
Returns number
-
Parameters
Returns { (to: number, num: number): number; (to: number): (num: number) => number }
-
- (to: number, num: number): number
- (to: number): (num: number) => number
-
Parameters
Returns number
-
Parameters
Returns (num: number) => number
-
-
Parameters
Returns number
Const decrement
decrement: (right: number) => number = add(-1)
Type declaration
-
-
Parameters
Returns number
Const divide
divide: { (left: number, right: number): number; (left: number): (right: number) => number } = curry((left: number, right: number) => left / right)
Type declaration
-
- (left: number, right: number): number
- (left: number): (right: number) => number
-
Parameters
-
left: number
-
right: number
Returns number
-
Parameters
Returns (right: number) => number
-
-
Parameters
Returns number
Const divideBy
divideBy: { (left: number, right: number): number; (left: number): (right: number) => number } = curry((right: number, left: number): number => left / right)
Type declaration
-
- (left: number, right: number): number
- (left: number): (right: number) => number
-
Parameters
-
left: number
-
right: number
Returns number
-
Parameters
Returns (right: number) => number
-
-
Parameters
Returns number
Const increment
increment: (right: number) => number = add(1)
Type declaration
-
-
Parameters
Returns number
Const modulo
modulo: { (left: number, right: number): number; (left: number): (right: number) => number } = curry(__modulo)
Type declaration
-
- (left: number, right: number): number
- (left: number): (right: number) => number
-
Parameters
-
left: number
-
right: number
Returns number
-
Parameters
Returns (right: number) => number
-
-
Parameters
Returns number
Const multiply
multiply: { (left: number, right: number): number; (left: number): (right: number) => number } = curry(__multiply) as {(left: number, right: number): number(left: number): (right: number) => number}
Type declaration
-
- (left: number, right: number): number
- (left: number): (right: number) => number
-
Parameters
-
left: number
-
right: number
Returns number
-
Parameters
Returns (right: number) => number
-
-
Parameters
Returns number
Const pow
pow: { (exponent: number, base: number): number; (exponent: number): (base: number) => number } = curry((exponent: number, base: number): number => Math.pow(base, exponent))
Type declaration
-
- (exponent: number, base: number): number
- (exponent: number): (base: number) => number
-
Parameters
-
exponent: number
-
base: number
Returns number
-
Parameters
Returns (base: number) => number
-
-
Parameters
Returns number
Const subtract
subtract: { (left: number, right: number): number; (left: number): (right: number) => number } = curry(__subtract)
Type declaration
-
- (left: number, right: number): number
- (left: number): (right: number) => number
-
Parameters
-
left: number
-
right: number
Returns number
-
Parameters
Returns (right: number) => number
-
-
Parameters
Returns number
Const subtractBy
subtractBy: { (right: number, left: number): number; (right: number): (left: number) => number } = curry(__subtractBy)
Type declaration
-
- (right: number, left: number): number
- (right: number): (left: number) => number
-
Parameters
-
right: number
-
left: number
Returns number
-
Parameters
Returns (left: number) => number
-
-
Parameters
Returns number
@typed/math