MCPcopy Create free account
hub / github.com/WeBankFinTech/DataSphereStudio / add

Function add

web/packages/shared/common/service/querystring.js:24–27  ·  view source on GitHub ↗
(k, v)

Source from the content-addressed store, hash-verified

22 return Object.prototype.toString.call(obj) === '[object Array]'
23 }
24 let add = function (k, v) {
25 v = typeof v === 'function' ? v() : v === null ? '' : v === undefined ? '' : v
26 s[s.length] = encodeURIComponent(k) + '=' + encodeURIComponent(v)
27 }
28 let buildParams = function (prefix, obj) {
29 let i, len, key
30

Callers 1

buildParamsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected