Skip to content

Instantly share code, notes, and snippets.

@jadehopepunk
Last active December 20, 2017 02:29
Show Gist options
  • Save jadehopepunk/b8bff17ce10701eb4ac7394e4793d54f to your computer and use it in GitHub Desktop.
Save jadehopepunk/b8bff17ce10701eb4ac7394e4793d54f to your computer and use it in GitHub Desktop.
function isValidOrder(order, customer) {
return
order.units > 1 &&
order.state == 'complete' &&
includingSalesTax(order.price) < customer.availableBalance
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment