Skip to content

Instantly share code, notes, and snippets.

@danascheider
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danascheider/3edf9e0aae7bf5e51c3d to your computer and use it in GitHub Desktop.
Save danascheider/3edf9e0aae7bf5e51c3d to your computer and use it in GitHub Desktop.
Sorted Array of 50 Abbreviated US States (Excluding Territories)

I had to search everywhere to find a decent sorted array of all 50 states that I could copy and paste into my code. The result was that I had to spend a stupid amount of time copying the damned things myself. Hopefully this can spare others the trouble. Most of the languages I can think of will work with an array in this format with minimal modifications that should be possible using a decent find-and-replace. I hope this saves some other unfortunate developer the headache.

['AK','AL','AR','AZ','CA','CO','CT','DE','FL','GA','HI','IA','ID','IL','IN','KS','KY','LA','MA','MD','ME','MI','MN','MO','MS','MT','NC','ND','ND','NE','NH','NJ','NM','NV','NY','OH','OK','OR','PA','RI','SC','SD','TN','TX','UT','VA','VT','WA','WI','WV','WY']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment