But you are traversing through all elements... However, map is to be used for mapping. It it is just for passing through all elements, just use for loops (or forEach).
Sign up to request clarification or add additional context in comments.
Comments
1
you were pretty close but applied the function at the wrong point
I believe this is what you're looking for console.log(todos.map(el => el.map(subEl => subEl)));
[23,25,33,36,55,66]mapis to be used for mapping. It it is just for passing through all elements, just useforloops (orforEach).