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