diff --git a/app/javascript/common/money.ts b/app/javascript/common/money.ts index 240285b3..f8f9afcf 100644 --- a/app/javascript/common/money.ts +++ b/app/javascript/common/money.ts @@ -184,6 +184,12 @@ export class Money { return 0 <= this.compare(other); } + /** + * Returns true if the amount is negative + * + * @returns {boolean} + * @memberof Money + */ isNegative(): boolean { return this.amount < 0; }