Skip to content

Commit 8acd39e

Browse files
authored
docs: use array/map/set example for removeUndefinedValues (#6709)
1 parent b5217c1 commit 8acd39e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: UPGRADING.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,9 @@ await ddbDocClient.send(
537537
TableName,
538538
Item: {
539539
id: "123",
540-
content: undefined // This value will be automatically omitted
540+
array: [1, undefined], // The undefined value will be automatically omitted.
541+
map: { key: undefined }, // The "key" will be automatically omitted.
542+
set: new Set([1, undefined]), // The undefined value will be automatically omitted.
541543
};
542544
})
543545
);

0 commit comments

Comments
 (0)