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

Function getStateNameByStateCode

app/core/utils.js:1201–1201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1199 // returns a valid state name else null
1200
1201 const getStateNameByStateCode = code => stateNamesByCode[sanitizeStateCode(code)] || null
1202
1203 // normalizes case and removes invalid characters
1204 // returns null if can't find sanitized name in the state map

Callers

nothing calls this directly

Calls 1

sanitizeStateCodeFunction · 0.85

Tested by

no test coverage detected