stateName
stateName(
stateCode):string|null
Returns the English name of a state from its two-letter code. The lookup ignores ASCII letter case only. It does not trim spaces, and it does not change other characters.
Parameters
Section titled “Parameters”stateCode
Section titled “stateCode”string
A state code, such as EK.
Returns
Section titled “Returns”string | null
The state’s name, or null for an unknown code.
Example
Section titled “Example”stateName('EK'); // 'Ekiti'stateName('fc'); // 'Federal Capital Territory'stateName('XX'); // nullUnofficial. Not made or endorsed by NIPOST.