ws4kp/server/scripts/data/states.js

60 lines
1.1 KiB
JavaScript
Raw Normal View History

2020-09-04 18:02:20 +00:00
// eslint-disable-next-line no-unused-vars
const states = (() => {
const stateList = {
2020-10-29 21:44:28 +00:00
Arizona: 'AZ',
Alabama: 'AL',
Alaska: 'AK',
Arkansas: 'AR',
California: 'CA',
Colorado: 'CO',
Connecticut: 'CT',
Delaware: 'DE',
Florida: 'FL',
Georgia: 'GA',
Hawaii: 'HI',
Idaho: 'ID',
Illinois: 'IL',
Indiana: 'IN',
Iowa: 'IA',
Kansas: 'KS',
Kentucky: 'KY',
Louisiana: 'LA',
Maine: 'ME',
Maryland: 'MD',
Massachusetts: 'MA',
Michigan: 'MI',
Minnesota: 'MN',
Mississippi: 'MS',
Missouri: 'MO',
Montana: 'MT',
Nebraska: 'NE',
Nevada: 'NV',
2020-09-04 18:02:20 +00:00
'New Hampshire': 'NH',
'New Jersey': 'NJ',
'New Mexico': 'NM',
'New York': 'NY',
'North Carolina': 'NC',
'North Dakota': 'ND',
2020-10-29 21:44:28 +00:00
Ohio: 'OH',
Oklahoma: 'OK',
Oregon: 'OR',
Pennsylvania: 'PA',
2020-09-04 18:02:20 +00:00
'Rhode Island': 'RI',
'South Carolina': 'SC',
'South Dakota': 'SD',
2020-10-29 21:44:28 +00:00
Tennessee: 'TN',
Texas: 'TX',
Utah: 'UT',
Vermont: 'VT',
Virginia: 'VA',
Washington: 'WA',
2020-09-04 18:02:20 +00:00
'West Virginia': 'WV',
2020-10-29 21:44:28 +00:00
Wisconsin: 'WI',
Wyoming: 'WY',
2020-09-04 18:02:20 +00:00
};
return {
getTwoDigitCode: (stateFullName) => stateList[stateFullName],
};
})();