(paramName, opts, params, asJson)
| 8245 | } |
| 8246 | |
| 8247 | function addHttpParam(paramName, opts, params, asJson) { |
| 8248 | // add an http param from opts to params, optionally json-encoded |
| 8249 | let val = opts[paramName]; |
| 8250 | if (typeof val !== 'undefined') { |
| 8251 | if (asJson) { |
| 8252 | val = encodeURIComponent(JSON.stringify(val)); |
| 8253 | } |
| 8254 | params.push(paramName + '=' + val); |
| 8255 | } |
| 8256 | } |
| 8257 | |
| 8258 | function coerceInteger(integerCandidate) { |
| 8259 | if (typeof integerCandidate !== 'undefined') { |
no outgoing calls
no test coverage detected
searching dependent graphs…