Last active
February 13, 2024 16:57
-
-
Save dhavalsavalia/fde3538f53626b40a6f887d6f1e01b38 to your computer and use it in GitHub Desktop.
Indian state array for JavaScript/TypeScript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let states = [ | |
"Andhra Pradesh", | |
"Arunachal Pradesh", | |
"Assam", | |
"Bihar", | |
"Chhattisgarh", | |
"Goa", | |
"Gujarat", | |
"Haryana", | |
"Himachal Pradesh", | |
"Jammu and Kashmir", | |
"Jharkhand", | |
"Karnataka", | |
"Kerala", | |
"Madhya Pradesh", | |
"Maharashtra", | |
"Manipur", | |
"Meghalaya", | |
"Mizoram", | |
"Nagaland", | |
"Odisha", | |
"Punjab", | |
"Rajasthan", | |
"Sikkim", | |
"Tamil Nadu", | |
"Telangana", | |
"Tripura", | |
"Uttarakhand", | |
"Uttar Pradesh", | |
"West Bengal", | |
"Andaman and Nicobar Islands", | |
"Chandigarh", | |
"Dadra and Nagar Haveli", | |
"Daman and Diu", | |
"Delhi", | |
"Lakshadweep", | |
"Puducherry" | |
] | |
let stateAbbrivations = [ | |
["Andhra Pradesh", "AP"], | |
["Arunachal Pradesh", "AR"], | |
["Assam", "AS"], | |
["Bihar", "BR"], | |
["Chhattisgarh", "CG"], | |
["Goa", "GA"], | |
["Gujarat", "GJ"], | |
["Haryana", "HR"], | |
["Himachal Pradesh", "HP"], | |
["Jammu and Kashmir", "JK"], | |
["Jharkhand", "JH"], | |
["Karnataka", "KA"], | |
["Kerala", "KL"], | |
["Madhya Pradesh", "MP"], | |
["Maharashtra", "MH"], | |
["Manipur", "MN"], | |
["Meghalaya", "ML"], | |
["Mizoram", "MZ"], | |
["Nagaland", "NL"], | |
["Odisha", "OD"], | |
["Punjab", "PB"], | |
["Rajasthan", "RJ"], | |
["Sikkim", "SK"], | |
["Tamil Nadu", "TN"], | |
["Telangana", "TS"], | |
["Tripura", "TR"], | |
["Uttarakhand", "UK"], | |
["Uttar Pradesh", "UP"], | |
["West Bengal", "WB"], | |
["Andaman and Nicobar Islands", "AN"], | |
["Chandigarh", "CH"], | |
["Dadra and Nagar Haveli", "DN"], | |
["Daman and Diu", "DD"], | |
["Delhi", "DL"], | |
["Lakshadweep", "LD"], | |
["Puducherry", "PY"] | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks! It could have had abbreviations as well.