Function to convert between name and abbreviations for US states and Canadian provinces
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE Initial commit Dec 13, 2017
README.md
stateAbbreviations.js Initial commit Dec 13, 2017

README.md

stateAbbreviations

Function to convert between name and abbreviations for US states and Canadian provinces.
Based on stateToAbbr.js: https://gist.github.com/calebgrove/c285a9510948b633aa47

Usage:

var stateName = convertRegion("TX",TO_NAME);    // Returns 'Texas"  
var stateAbbreviation = convertRegion("Florida",TO_ABBREVIATED):   // Returns "FL"