shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
toQueryString
Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.object
Transform an object (key => pairs) to a query string like “?var1=value1&var2”
Params
- obj*-Object
The object to serialize
Return
- -String
The query string
Example
import { toQueryString } from '@blackbyte/sugar/object'
console.log(toQueryString({
value1 : 'coco',
value1 : 'plop'
}));
// => ?value1=coco&value2=plopTodo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space
Changelog
- 1.0.0-beta.17Added null/undefined value check