* 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)
| 382 | * @returns {function(*, string)} |
| 383 | */ |
| 384 | function reverseParams(iteratorFn) { |
| 385 | return function(value, key) {iteratorFn(key, value);}; |
| 386 | } |
| 387 | |
| 388 | /** |
| 389 | * A consistent way of creating unique IDs in angular. |
no outgoing calls
no test coverage detected