Skip to content

Instantly share code, notes, and snippets.

@JaimeStill
Created October 6, 2017 14:42
Show Gist options
  • Save JaimeStill/fae6bec1b126bf4ea2fb47640952f140 to your computer and use it in GitHub Desktop.
Save JaimeStill/fae6bec1b126bf4ea2fb47640952f140 to your computer and use it in GitHub Desktop.
Extra Pay
getExtraPay() {
let extraPay = 0;
if (this.debtData.totalDebt > 0) {
extraPay = this.debtData.data[0].payoff;
this.debtData.data.forEach(d => {
extraPay = Math.min(d.payoff, extra Pay);
});
}
return extraPay;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment