How to check if a string is a valid latitude and longitude combination in JavaScript?
Originally Published Here ๐!
To check if a string is a valid latitude and longitude combination, we can use a regex expression in JavaScript.
TL;DR
// Regular expression to check if string is a latitude and longitude
const regexExp = /^((\-?|\+?)?\d...
melvingeorge-me.hashnode.dev2 min read