const a = [
[1,2,3],
['a',5,'c',],
[ 4,5,6],
['d','e','f'],
[ 7,8,9],
];
2 ответа
Так же как и невложенный:
const a = [
[1,2,3],
['a',5,'c',],
[ 4,5,6],
['d','e','f'],
[ 7,8,9],
];
a.forEach(item => console.log(JSON.stringify(item.reverse())));
const a = [
[1,2,3],
['a',5,'c',],
[ 4,5,6],
['d','e','f'],
[ 7,8,9],
];
console.log(a.map(m => m.reverse()))