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

Function showMillionaires

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

Source from the content-addressed store, hash-verified

45
46// Filter only millionaires
47function showMillionaires() {
48 data = data.filter(user => user.money > 1000000);
49
50 updateDOM();
51}
52
53// Calculate the total wealth
54function calculateWealth() {

Callers

nothing calls this directly

Calls 1

updateDOMFunction · 0.85

Tested by

no test coverage detected