Skip to content

Commit

Permalink
Update object.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tsi committed Aug 24, 2023
1 parent de24bb3 commit 3f3360c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ export const omit = (obj, keys) => {
export const convertKeysToSnakeCase = (obj) => {
let snakeCaseObj = {};

Object.keys(obj).forEach((key) => {
for (const key of Object.keys(obj)) {
const snakeCaseKey = snakeCase(key);
snakeCaseObj[snakeCaseKey] = obj[key];
});
}

return snakeCaseObj;
};

0 comments on commit 3f3360c

Please sign in to comment.