0👍
If you have an array of objects, just push it:
this.bets.push(latest)
Also, your orderBy
method should probably be sortBy
given what you want to do:
return _.sortBy(this.bets, bet => bet.created_at)
Source:stackexchange.com
0👍
If you have an array of objects, just push it:
this.bets.push(latest)
Also, your orderBy
method should probably be sortBy
given what you want to do:
return _.sortBy(this.bets, bet => bet.created_at)