I am not sure I understand well how isc.list.contains is supposed to work. Using V8.0 seems to yield different results using contains VS containsAll. You can use this code to test it out:
In the code above, contains returns false, while containsAll returns true. The prompt says "false, true".
Anything I am missing, or is it a bug?
Thanks,
Sorin
Code:
ll = isc.List.create([{AreaCode: '123'}]);
FoundOne = ll.contains({AreaCode: '123'});
FoundList = ll.containsAll(isc.List.create([{AreaCode: '123'}]));
isc.say(FoundOne + ', ' + FoundList);
Anything I am missing, or is it a bug?
Thanks,
Sorin
Comment