MCPcopy Create free account
hub / github.com/apache/cloudstack / toKeyValue

Function toKeyValue

tools/ngui/static/js/lib/angular.js:837–843  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

835}
836
837function toKeyValue(obj) {
838 var parts = [];
839 forEach(obj, function(value, key) {
840 parts.push(encodeUriQuery(key, true) + (value === true ? '' : '=' + encodeUriQuery(value, true)));
841 });
842 return parts.length ? parts.join('&') : '';
843}
844
845
846/**

Callers 2

LocationUrlFunction · 0.85
LocationHashbangUrlFunction · 0.85

Calls 3

forEachFunction · 0.85
encodeUriQueryFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected