JSFiddle - React, Tailwind, and code Playground

by Yuriy Bablyukh

HTML

"ValidationException: Invalid ConditionExpression: An expression attribute name used in the document path is not defined; attribute name: #status\n    at throwDefaultError (C:\\work\\trading-service\\server\\node_modules\\@smithy\\smithy-client\\dist-cjs\\index.js:838:20)\n    at C:\\work\\trading-service\\server\\node_modules\\@smithy\\smithy-client\\dist-cjs\\index.js:847:5\n    at de_CommandError (C:\\work\\trading-service\\server\\node_modules\\@aws-sdk\\client-dynamodb\\dist-cjs\\index.js:2231:14)\n    at processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at C:\\work\\trading-service\\server\\node_modules\\@smithy\\middleware-serde\\dist-cjs\\index.js:35:20\n    at C:\\work\\trading-service\\server\\node_modules\\@smithy\\core\\dist-cjs\\index.js:165:18\n    at C:\\work\\trading-service\\server\\node_modules\\@smithy\\middleware-retry\\dist-cjs\\index.js:320:38\n    at C:\\work\\trading-service\\server\\node_modules\\@aws-sdk\\middleware-logger\\dist-cjs\\index.js:33:22\n    at ProposalsDaoService.deleteProposal (C:\\work\\trading-service\\server\\src\\daos\\proposals\\proposalsDao.service.ts:147:7)\n    at ProposalsService.deleteProposal (C:\\work\\trading-service\\server\\src\\api\\proposals\\proposals.service.ts:118:5)"

JavaScript

var chunks = function(array, size) {
  var results = [];
  while (array.length) {
    results.push(array.splice(0, size));
  }
  return results;
};


const arr = [1,2,4,5,6,7,8,89,5,4,54,5];

console.log(chunks(arr,2));