Created
September 25, 2020 21:20
-
-
Save JWPapi/c7e23aa511df5b06d47e867f54a1d784 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| betSchema.virtual('toWin').get(function() { | |
| return Number(this.backing/this.odds + this.backing/this.odds/this.odds).toFixed(2) | |
| }) | |
| !== | |
| betSchema.virtual('toWin').get(() => Number(this.backing/this.odds + this.backing/this.odds/this.odds).toFixed(2)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment