Convert an object into a search param string. Note the following:
undefined
null
'?'
Optional
import {searchParamsToString} from 'url-vir';searchParamsToString({hello: ['there'], cheese: ['']}); // `'?hello=there&cheese'` Copy
import {searchParamsToString} from 'url-vir';searchParamsToString({hello: ['there'], cheese: ['']}); // `'?hello=there&cheese'`
Convert an object into a search param string. Note the following:
undefinedornullvalues will be omitted from the string.'?'is included in the return string.