is-sea icon indicating copy to clipboard operation
is-sea copied to clipboard

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

Open lennertVanSever opened this issue 4 years ago • 2 comments

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 avatar Aug 06 '20 16:08 lennertVanSever

How to use it in Vue?

PloughingNorth avatar Aug 08 '20 14:08 PloughingNorth

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

MyTuring avatar Aug 09 '20 00:08 MyTuring