Postgresql Javascript Array Contains Object Remover