We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Something like:
function parseLon (val) { const lon = parseFloat(val) if (isNaN(lon) || lon < -180 || lon > 180) { throw new Error('Invalid longtitude.') } return lon } function parseLat (val) { const lat = parseFloat(val) if (isNaN(lat) || lat < -90 || lat > 90) { throw new Error('Invalid latitude.') } return lat }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Something like:
The text was updated successfully, but these errors were encountered: