Postgres Get Number From String Js Functions In Array