reduce array of object to array javascript code example
Example: reduce mdn
array.reduce(callback( accumulator, valueNow[, index[, array]] )[, initialValue]))
array.reduce(callback( accumulator, valueNow[, index[, array]] )[, initialValue]))