(obj)
| 1348 | } |
| 1349 | |
| 1350 | function toKeyValue(obj) { |
| 1351 | var parts = []; |
| 1352 | forEach(obj, function(value, key) { |
| 1353 | if (isArray(value)) { |
| 1354 | forEach(value, function(arrayValue) { |
| 1355 | parts.push(encodeUriQuery(key, true) + |
| 1356 | (arrayValue === true ? '' : '=' + encodeUriQuery(arrayValue, true))); |
| 1357 | }); |
| 1358 | } else { |
| 1359 | parts.push(encodeUriQuery(key, true) + |
| 1360 | (value === true ? '' : '=' + encodeUriQuery(value, true))); |
| 1361 | } |
| 1362 | }); |
| 1363 | return parts.length ? parts.join('&') : ''; |
| 1364 | } |
| 1365 | |
| 1366 | |
| 1367 | /** |
no test coverage detected