/** *因为forEach是value,key的顺序,但是key,value是最常用的。 * when using forEach the params are value, key, but it is often useful to have key, value. * @param {function(string, *)} iteratorFn * @returns {function(*, string)} */ functionreverseParams(iteratorFn) { returnfunction(value, key) {iteratorFn(key, value);}; }