Postgresql Javascript Array Contains Element