Skip to content
New issue

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

isSea.get() is not a function but isSea() works #6

Open
lennertVanSever opened this issue Aug 6, 2020 · 2 comments · May be fixed by #7
Open

isSea.get() is not a function but isSea() works #6

lennertVanSever opened this issue Aug 6, 2020 · 2 comments · May be fixed by #7

Comments

@lennertVanSever
Copy link

lennertVanSever commented Aug 6, 2020

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
@lennertVanSever lennertVanSever linked a pull request Aug 6, 2020 that will close this issue
@PloughingNorth
Copy link

How to use it in Vue?

@MyTuring
Copy link

MyTuring commented Aug 9, 2020

Excuse me,could you tell me how to use it in Vue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants