MCPcopy Index your code
hub / github.com/KilledByAPixel/LittleJS / medalsForEach

Function medalsForEach

plugins/medalSystem.js:104–105  ·  view source on GitHub ↗

Calls a function for each medal * @param {MedalCallbackFunction} callback * @memberof Medals

(callback)

Source from the content-addressed store, hash-verified

102 * @param {MedalCallbackFunction} callback
103 * @memberof Medals */
104function medalsForEach(callback)
105{ Object.values(medals).forEach(medal=>callback(medal)); }
106
107///////////////////////////////////////////////////////////////////////////////
108

Callers 3

medalsInitFunction · 0.85
gameInitFunction · 0.85
gameRenderPostFunction · 0.85

Calls 1

callbackFunction · 0.85

Tested by

no test coverage detected