Postgres Value In Array Js Slice String