Skip to main content
7 events
when toggle format what by license comment
Aug 25, 2015 at 22:35 history bounty ended Alvin Reyes
Aug 25, 2015 at 8:30 comment added Peter Kjaer It would get you further, for sure -- but it's clearly expecting this type of object so it might just break later on when it tries to use one of the other methods that are added to the prototype. Getting the values first is the safest option.
Aug 25, 2015 at 7:24 comment added Dominic Cronin Presumably, in this case, adding your own 'contains' method to Array would also work.
Aug 25, 2015 at 1:20 comment added Arai Yuhei Thank you for answering my question. It did work by You grate proposal method. I solve my quesion. Thank you.
Aug 25, 2015 at 1:20 vote accept Arai Yuhei
Aug 24, 2015 at 12:24 history edited Peter Kjaer CC BY-SA 3.0
Simplified the code to match what was in the question closer.
Aug 24, 2015 at 12:16 history answered Peter Kjaer CC BY-SA 3.0