MCPcopy Create free account
hub / github.com/dataease/SQLBot / buildFormData

Function buildFormData

frontend/public/swagger-ui-bundle.js:31225–31234  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

31223 tagsSorter: { alpha: (s, o) => s.localeCompare(o) },
31224 },
31225 buildFormData = (s) => {
31226 let o = []
31227 for (let i in s) {
31228 let a = s[i]
31229 void 0 !== a &&
31230 '' !== a &&
31231 o.push([i, '=', encodeURIComponent(a).replace(/%20/g, '+')].join(''))
31232 }
31233 return o.join('&')
31234 },
31235 shallowEqualKeys = (s, o, i) => !!dt()(i, (i) => vt()(s[i], o[i]))
31236 function requiresValidationURL(s) {
31237 return !(!s || s.indexOf('localhost') >= 0 || s.indexOf('127.0.0.1') >= 0 || 'none' === s)

Calls 2

replaceMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected