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

Function reverseParams

tools/ngui/static/js/lib/angular.js:169–171  ·  view source on GitHub ↗

* when using forEach the params are value, key, but it is often useful to have key, value. * @param {function(string, *)} iteratorFn * @returns {function(*, string)}

(iteratorFn)

Source from the content-addressed store, hash-verified

167 * @returns {function(*, string)}
168 */
169function reverseParams(iteratorFn) {
170 return function(value, key) { iteratorFn(key, value) };
171}
172
173/**
174 * A consistent way of creating unique IDs in angular. The ID is a sequence of alpha numeric

Callers 2

supportObjectFunction · 0.85
$CompileProviderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected