MCPcopy
hub / github.com/4ian/GDevelop / getOrCreateList

Method getOrCreateList

GDevelop.js/TestUtils/GDJSMocks.js:975–979  ·  view source on GitHub ↗

@param {string} objectName

(objectName)

Source from the content-addressed store, hash-verified

973
974 /** @param {string} objectName */
975 getOrCreateList(objectName) {
976 if (!this.objectsLists.has(objectName))
977 this.objectsLists.set(objectName, []);
978 return this.objectsLists.get(objectName);
979 }
980
981 /** @param {string} objectName */
982 getObjects(objectName) {

Callers 2

addObjectMethod · 0.95
removeObjectMethod · 0.95

Calls 3

setMethod · 0.65
getMethod · 0.65
hasMethod · 0.45

Tested by

no test coverage detected