Array should have nested array of object. But I need to chunk array eg counter 3. Please can someone help? Need to chunk nested array to different tables in jsPDF. Example https://codesandbox.io/s/stoic-blackburn-xtdtyu?file=/src/index.js
const init = [
{
name: 1,
items: [
{
name: 2,
items: [
{
name: 3
}
]
},
{
name: 4,
items: []
},
]
}
];