mourner / rbush-knn

k-nearest neighbors search (KNN) for RBush
ISC License
212 stars 37 forks source link

doc: fix example #15

Closed chimurai closed 5 years ago

chimurai commented 5 years ago

fixes example introduced in PR #12

Took me some time to realise you have to instantiate RBush

Example suggests you can use it directly as a function...

chimurai commented 5 years ago

npm run build-min failed with the latest version of uglify-js

More info at: https://github.com/mishoo/UglifyJS2/issues/3394

Fixed the buil by pinning uglify-js to the current semver patch version. It's up to you to upgrade to the latest version.

mourner commented 5 years ago

Thanks!