MCPcopy Create free account
hub / github.com/awslabs/llrt / segmentArray

Function segmentArray

example/clear-ddb-table.mjs:22–25  ·  view source on GitHub ↗
(array, segmentSize)

Source from the content-addressed store, hash-verified

20}
21
22const segmentArray = (array, segmentSize) =>
23 Array.from({ length: Math.ceil(array.length / segmentSize) }, (_, index) =>
24 array.slice(index * segmentSize, (index + 1) * segmentSize)
25 );
26
27function extractRegionAndTableName(arn) {
28 const parts = arn.split(":");

Callers 1

clearDynamoDBTableFunction · 0.85

Calls 2

fromMethod · 0.65
sliceMethod · 0.45

Tested by

no test coverage detected