From c43eb07638f0bdec67b3beda1da09cec36e6bfeb Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Thu, 22 Oct 2020 14:25:02 -0500 Subject: [PATCH] Add documentation to Money.isNegative --- app/javascript/common/money.ts | 6 ++++++ 1 file changed, 6 insertions(+) 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; }