Port of PHP's Http Query Builder into JavaScript
$ npm install http-query-builder
import httpBuildQuery from 'http-query-builder';
// 1. parameter - any array, object, null or undefined
// 2. parameter - argument separator - defaults to '&'
const query: string = httpBuildQuery({
orderBy: [
{ column: 'created', desc: true
]
}); // expects: orderBy[0][column]=created&orderBy[0][desc]=1