MCPcopy
hub / github.com/bradtraversy/vanillawebprojects / doubleMoney

Function doubleMoney

dom-array-methods/script.js:30–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

updateDOMFunction · 0.85

Tested by

no test coverage detected