Add documentation to Money.isNegative

This commit is contained in:
Eric Schultz 2020-10-22 14:25:02 -05:00 committed by Eric Schultz
parent 659c2eecc2
commit c43eb07638

View file

@ -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;
}