Skip to content

Commit

Permalink
chore(lib-dynamodb): remove redundant spread processKeysInObj
Browse files Browse the repository at this point in the history
  • Loading branch information
christiantakle committed Jul 2, 2024
1 parent 48e5271 commit 462567c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lib-dynamodb/src/commands/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const processObj = (obj: any, processFunc: Function, keyNodes?: KeyNodes): any =
const processKeysInObj = (obj: any, processFunc: Function, keyNodes: KeyNodeChildren) => {
let accumulator: any;
if (Array.isArray(obj)) {
accumulator = [...obj].filter((item) => typeof item !== "function");
accumulator = obj.filter((item) => typeof item !== "function");
} else {
accumulator = {};
for (const [k, v] of Object.entries(obj)) {
Expand Down

0 comments on commit 462567c

Please sign in to comment.