Skip to content

Commit 8b90bd7

Browse files
committed
fix: do not iterate over prototype properties of reduers
1 parent 0c35c0e commit 8b90bd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stringify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function stringify(value, reducers) {
2929

3030
/** @type {Array<{ key: string, fn: (value: any) => any }>} */
3131
const custom = [];
32-
for (const key in reducers) {
32+
for (const key of Object.getOwnPropertyNames(reducers)) {
3333
custom.push({ key, fn: reducers[key] });
3434
}
3535

0 commit comments

Comments
 (0)