SudoSOS Back-end API / helpers / asDinero
Function: asDinero() ​
ts
function asDinero(input): Dinero;Converts the input to a Dinero object.
Parameters ​
| Parameter | Type | Description |
|---|---|---|
input | any | The input which should be converted. |
Returns ​
Dinero
The parsed dinero object.
Throws ​
TypeError - If the input is not a valid integer.