Just change it to ```_(x) .map(x => _.valu...
# suitescript
m
Just change it to
Copy code
_(x)
    .map(x => _.valuesIn(x.so))
    .map(_.valuesIn)
    .flatten()
    .map(x => x.lines)
    .map(_.valuesIn)
    .flatten()
    .groupBy('itemId')
    .value();
and it's allot less scary