Closed ajoslin closed 7 years ago
Thanks!
Should we remove array-find
too?
find(this.routes, route => route.name === name)
could be
this.routes.filter(route => route.name === name)[0]
array-find
is only 407B gzipped, so it's less of a big deal.
But yes, that would probably be better. May as well save half a KB where you can.
Thanks for the library.
I'm evaluating using this, and I saw the array-includes dep wasn't really needed, so here you go.