()
| 28 | |
| 29 | // Double eveyones money |
| 30 | function doubleMoney() { |
| 31 | data = data.map(user => { |
| 32 | return { ...user, money: user.money * 2 }; |
| 33 | }); |
| 34 | |
| 35 | updateDOM(); |
| 36 | } |
| 37 | |
| 38 | // Sort users by richest |
| 39 | function sortByRichest() { |
nothing calls this directly
no test coverage detected