Say I have the following array:
const arr = [ 'a,b,c', 'd,e,f', 'g,h,i' ];
I want to get to
[ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i' ]
I am currently using reduce https://jsbin.com/xejedexada/edit?js,console
arr.reduce((a,c) => (typeof a == 'object' ? a : a.split(',')).concat(c.split(',')));
But I wonder if there is a better way to do this.