Problems in the use of seamless-immutable

now there is such a piece of data

let a = [{list:[1,2,3]},{list:[4,5,6]}];
let aIm = immutable(a);

I want to add 1 to every item in the list array. How should I write it?

Mar.09,2021

a.map(x => {
    return x.list.map(y => y+1)
})

you can do this, using two layers of reduce:

   

Menu