* 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)
| 459 | * @returns {function(*, string)} |
| 460 | */ |
| 461 | function reverseParams(iteratorFn) { |
| 462 | return function(value, key) {iteratorFn(key, value);}; |
| 463 | } |
| 464 | |
| 465 | /** |
| 466 | * A consistent way of creating unique IDs in angular. |
no outgoing calls
no test coverage detected