isStateLevelAbbreviation()
function isStateLevelAbbreviation(input): input is AdminLevel1Abbreviation
Predicate for checking if a string is a proper abbreviation for a US State or territory, rather than a random 2-letter string.
Parameters
Parameter | Type |
---|---|
input | unknown |
Returns
input is AdminLevel1Abbreviation
See
- isStateAbbreviation for a specific check for US States.
- isStateTerritoryAbbreviation for a specific check for US Territories.