()
| 28 | } |
| 29 | |
| 30 | function doubleMoney() { |
| 31 | data = data.map((user) => { |
| 32 | return { ...user, money: user.money * 2 }; |
| 33 | }); |
| 34 | |
| 35 | updateDOM(); |
| 36 | } |
| 37 | |
| 38 | function sortByRichest() { |
| 39 | data.sort((a, b) => b.money - a.money); |
nothing calls this directly
no test coverage detected