Skip to content

Commit 462567c

Browse files
chore(lib-dynamodb): remove redundant spread processKeysInObj
1 parent 48e5271 commit 462567c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/lib-dynamodb/src/commands/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const processObj = (obj: any, processFunc: Function, keyNodes?: KeyNodes): any =
6464
const processKeysInObj = (obj: any, processFunc: Function, keyNodes: KeyNodeChildren) => {
6565
let accumulator: any;
6666
if (Array.isArray(obj)) {
67-
accumulator = [...obj].filter((item) => typeof item !== "function");
67+
accumulator = obj.filter((item) => typeof item !== "function");
6868
} else {
6969
accumulator = {};
7070
for (const [k, v] of Object.entries(obj)) {

0 commit comments

Comments
 (0)