const arrayColumn = (array, column_key, index_key = null) => {
if (index_key !== null) {
return array.reduce((a, b) => Object.assign(a, {[b[index_key ]]: column_key ? b[column_key] : b}))
} else {
return array.map(a => column_key ? a[column_key] : a)
}
}