Closed AlekseyLeshko closed 5 years ago
Hey there,
sorry for the late reply.
The docs show the following example:
uri.addSearch("no-value");
which is technically the same as
uri.addSearch("no-value", undefined);
and therefore the defined behavior of that function.
addSearch()
accepts an object, which in your case could be used to rewrite epicUrlBuilder()
so that it only adds values that are not undefined
.
Thanks for the awesome library!
Sometimes I need to add a query, but I don’t know if exists value. For example
Yes, of course, I could implement a custom function with this logic. I think it would be cool if this feature was included in the library.
Maybe update readable or create a new method?
What are you thinking about it?