is-sea
is-sea copied to clipboard
isSea.get() is not a function but isSea() works
Thanks for this awesome project! I found a little mistake in the README, you give the following example:
const isSea = require('is-sea');
// Query a point in Italy.
isSea.get(41.9028, 12.4964);
// => false
// Query a point somewhere in Atlantic Ocean.
isSea.get(40, -40);
// => true
But if you execute that example you will get the following error:
TypeError: isSea.get is not a function
The solution is to use isSea(...)
const isSea = require('is-sea');
// Query a point in Italy.
isSea(41.9028, 12.4964);
// => false
// Query a point somewhere in Atlantic Ocean.
isSea(40, -40);
// => true
How to use it in Vue?
Excuse me,could you tell me how to use it in Vue?