MCPcopy Create free account
hub / github.com/SeldonIO/seldon-server / parameterString

Function parameterString

client/js-client/src/rlClient.js:80–93  ·  view source on GitHub ↗
(params, keep)

Source from the content-addressed store, hash-verified

78 }
79
80 function parameterString(params, keep) {
81 var preserved = underscore.chain(underscore.keys(params).sort())
82 .filter(function (x) {
83 return underscore.contains(keep, x);
84 })
85 .map(function (key) {
86 return key + "=" + params[key];
87 })
88 .value();
89 if (preserved.length > 0) {
90 return params.query_delimiter + preserved.join("&");
91 }
92 return "";
93 }
94
95 function rewrite(url, rules) {
96 var rewritten = url;

Callers 1

pageIdFunction · 0.85

Calls 3

filterMethod · 0.80
sortMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected