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

Method getName

app/core/NameLoader.js:38–43  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

36 }
37
38 getName (id) {
39 if ((namesCache[id] != null ? namesCache[id].firstName : undefined) && (namesCache[id] != null ? namesCache[id].lastName : undefined)) {
40 return `${(namesCache[id] != null ? namesCache[id].firstName : undefined)} ${(namesCache[id] != null ? namesCache[id].lastName : undefined)}`
41 }
42 return (namesCache[id] != null ? namesCache[id].firstName : undefined) || (namesCache[id] != null ? namesCache[id].name : undefined) || id
43 }
44}
45
46module.exports = new NameLoader()

Callers 1

expandFlattenedDeltaFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected