MCPcopy Create free account
hub / github.com/OpenReservation/OpenReservation / reverseParams

Function reverseParams

OpenReservation/wwwroot/Scripts/angular.js:367–369  ·  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

365 * @returns {function(*, string)}
366 */
367 function reverseParams(iteratorFn) {
368 return function (value, key) { iteratorFn(key, value); };
369 }
370
371 /**
372 * A consistent way of creating unique IDs in angular.

Callers 2

supportObjectFunction · 0.85
$CompileProviderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected