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

Method cartesian

app/views/artisans/ArenaBalancerView.js:157–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155 const dataStorageKey = ['arena-balancer-data', this.levelSlug].join(':')
156 storage.save(dataStorageKey, this.variablesTreema.data)
157 const cartesian = a => a.reduce((a, b) => a.flatMap(d => b.map(e => [d, e].flat())))
158 const variables = []
159 for (const variable in this.variablesTreema.data) {
160 const variants = []

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected