multiply
Multiplies the current number by the provided value and returns the product. It is a chainable readability helper around the * operator.
Usage
ts
const total = (6).multiply(7);
// 42Parameters
| Name | Type | Description |
|---|---|---|
value | number | Multiplier. |
Returns
The product.
Type signature
ts
interface Number {
multiply(value: number): number;
}