Array Prototype Reduce Javascript Array Contains Method