Skip to content

Commit a9246f3

Browse files
committed
fix(lib-dynamodb): skip function in processKeys for array case
1 parent 69bf854 commit a9246f3

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
@@ -62,7 +62,7 @@ const processObj = (obj: any, processFunc: Function, keyNodes?: KeyNodes): any =
6262
const processKeysInObj = (obj: any, processFunc: Function, keyNodes: KeyNodeChildren) => {
6363
let accumulator: any;
6464
if (Array.isArray(obj)) {
65-
accumulator = [...obj];
65+
accumulator = obj.filter((item) => typeof item !== "function");
6666
} else {
6767
accumulator = {};
6868
for (const [k, v] of Object.entries(obj)) {

0 commit comments

Comments
 (0)