Postgresql Row To Array Js Mdn Array Reduce Method Js