Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
each(data, function(value, key){
if (typeof value !== 'string') {
value = json.stringify(value);
}
query.push(key + '=' + encodeURIComponent(value));
});
return query.join('&');