MCPcopy Create free account
hub / github.com/codecombat/codecombat / generateKeyForParameters

Function generateKeyForParameters

app/lib/level-generation.js:85–92  ·  view source on GitHub ↗
(parameters)

Source from the content-addressed store, hash-verified

83}
84
85function generateKeyForParameters (parameters) {
86 // Generate a key string to identify these parameter values, preserving the order of parameters defined in ParameterSchema
87 const result = []
88 for (const key of Object.keys(ParametersSchema.properties)) {
89 result.push(parameters[key])
90 }
91 return result.join('_')
92}
93
94// ---- Output Properties ----
95

Callers 1

generateLevelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected