Given an object of arrays and i have to iterate through every each value of every array in this object
Asked
Active
Viewed 53 times
-4

Kush Cloud
- 13
- 4
-
What did you try? – 0stone0 Oct 11 '22 at 15:09
1 Answers
0
(UPDATE) (thanks @pilchard)
Try this (replace obj with your own object):
Object.values(obj).forEach((array) => {
array.forEach((value) => {
console.log(value);
// Code for each value of each array
});
});

Hedi Zitouni
- 179
- 1
- 8