Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit a6f8dfe

Browse files
committed
Removing for...of syntax in pick util function.
1 parent a8d3949 commit a6f8dfe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/pick.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
export default function pick(object, props) {
22
const result = {};
33

4-
for (const prop of props) {
4+
for (let i = 0; i < props.length; i++) {
5+
const prop = props[i];
56
result[prop] = object[prop];
67
}
78

0 commit comments

Comments
 (0)