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