haversine
haversine copied to clipboard
Add error checking for unit and format
- Error check
options.unit
(throws TypeError) - Error check
options.format
(throws TypeError) - Add tests for thrown errors
- Add JSDoc
- Improve exporting
- Update README.md usage with output comments and API reference