I've got the a list of objects iterating in object.keys, however how can I iterate between two numbers only(3-5)? And ignoring the rest of the list.
const obj = { '#1 List title': [{ title: 'First', }, ], '#2 List title': [{ title: 'Sec', }, ], '#3 List title': [{ title: 'Third', }, ], '#4 List title': [{ title: 'Fourth', }, ], '#5 List title': [{ title: 'Fifth', }, ], }; const listItem = Object.keys(obj).map((key) => <div key={key}> <div>{key}</div> <div> {obj[key].map(el => {el.title} )} </div> </div> )
slice? developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/…