Skip to content

Commit 536f09b

Browse files
committed
Fixin loop args order regression from 3c2795b in invert.
1 parent 01148a1 commit 536f09b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

invert.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ const toString = Object.prototype.toString
1818
*/
1919
function invert(object) {
2020
const result = {}
21-
Object.keys(object).forEach((value, key) => {
21+
Object.keys(object).forEach((key) => {
22+
let value = object[key]
2223
if (value != null && typeof value.toString != 'function') {
2324
value = toString.call(value)
2425
}

0 commit comments

Comments
 (0)