pshrmn / curi

A JavaScript router for single-page applications
https://curi.js.org
MIT License
269 stars 10 forks source link

Omit undefined optional params from match params #250

Closed pshrmn closed 4 years ago

pshrmn commented 4 years ago

https://github.com/pshrmn/curi/issues/249

I elected to omit instead of including the property with an undefined value so that passing the params back to be compiled into a URL does not error.