I have an array of objects like this:
let list = [ { \'items\': [ \'item 1\', \'item 2\' ] }, { \'items\': [ \'item 3\' ]
You could use reduce(). There is no way to avoid looping since Array prototype methods do loops internally
reduce()
let list = [ { 'items': [ 'item 1', 'item 2' ] }, { 'items': [ 'item 3' ] } ]; const res = list.reduce((a,c) => [...a, ...c.items],[]) console.log(res)