Open krazibit opened 4 years ago
The if check should come before destructuring as seen below https://github.com/awslabs/dynamodb-data-mapper-js/blob/d52b9dfea14851235843a0879e5754822c0e462d/packages/dynamodb-data-mapper/src/marshallStartKey.ts#L14-L15
fixed here https://github.com/krazibit/dynamodb-data-mapper-js ~but unable to open a PR~ PR opened
The if check should come before destructuring as seen below https://github.com/awslabs/dynamodb-data-mapper-js/blob/d52b9dfea14851235843a0879e5754822c0e462d/packages/dynamodb-data-mapper/src/marshallStartKey.ts#L14-L15