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