Postgres Array Length Javascript Method Beamer