(key, valueOrFunction)
| 8956 | var prefix, |
| 8957 | s = [], |
| 8958 | add = function (key, valueOrFunction) { |
| 8959 | // If value is a function, invoke it and use its return value |
| 8960 | var value = isFunction(valueOrFunction) |
| 8961 | ? valueOrFunction() |
| 8962 | : valueOrFunction; |
| 8963 | |
| 8964 | s[s.length] = |
| 8965 | encodeURIComponent(key) + |
| 8966 | '=' + |
| 8967 | encodeURIComponent(value == null ? '' : value); |
| 8968 | }; |
| 8969 | |
| 8970 | if (a == null) { |
| 8971 | return ''; |
no test coverage detected