Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
get targetValue() {
if (isNaN(requestedAmount)) return 0;
if (isNan(otherRequestedAmount)) return 0;
return requestedAmount + otherRequestedAmount;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment