Add documentation to Money.isNegative
This commit is contained in:
parent
659c2eecc2
commit
c43eb07638
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue