Postgres Array Length Javascript Method Example