Dawid_Zajdel
6 years agoNew Contributor
Change nested arrays into one array
Hi,
I have a situation like below:
I have array "Allowance_Plan’ and in this array I could have many elements which also are arrays.
Child arrays as a elements contains objects.
In this ...
- 6 years ago
I think you’re looking for the
.concat()
method on arrays. That method will concatenate its arguments into a single array. To pass the arrays as the arguments to the method, you can use the spread operator (...
), like so:[].concat(...$['peci:Allowance_Plan'])
Here’s an example pipeline:
Community7041_2020_03_09.slp (3.5 KB)