Options for filtering null
/undefined
/empty string parameters.
true
will remove all parameters that are null or empty.Optional
filter2A second pass of null
/undefined
/empty string removal is run after all
other cleaning operations. This ensures no empty parameters are left behind.
If filter
is supplied, it will be used for this value. If set to false
, no
second pass will be performed.
Optional
removeOptions for removing values with no-like values.
true
will remove all parameters with no-like values.Optional
removeOptions for removing values with yes-like values.
true
will remove all parameters with yes-like values.Options for trimming parameters.
true
will trim all parameters.If a parameter cannot be trimmed (no trim function, is null or undefined, etc.), this operation silently fails.
Options for the cleanParams function.