MCPcopy Create free account
hub / github.com/tomas/needle / stringifyObject

Function stringifyObject

lib/querystring.js:37–47  ·  view source on GitHub ↗
(obj, prefix)

Source from the content-addressed store, hash-verified

35}
36
37function stringifyObject(obj, prefix) {
38 var ret = [];
39
40 Object.keys(obj).forEach(function(key) {
41 ret.push(stringify(obj[key], prefix
42 ? prefix + '[' + encodeURIComponent(key) + ']'
43 : encodeURIComponent(key)));
44 })
45
46 return ret.join('&');
47}
48
49exports.build = stringify;

Callers 1

stringifyFunction · 0.85

Calls 1

stringifyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…