Hi,
I have an array containing between 1 to 8 characters. A-H
var myChars =
[''a'',''b'',''c'',''d''];
myChars may vary in 36 different combinations. What is the easiest way
to compare that array with my combinations?
if(myChars.Contains(''a'',''b'') --> Do this;
else
if(myChars.Contains(''a'',''b'',''c'')
--> Do that;
I don''t know if there is a "Contains" method in prototype,
neither I
know if there is a standard method in javascript to solve my problem.
But in any case the solution must be strict, if myChars contains a,b,c
it won''t return true if I compare with a array that conints a,b only.
Notice that I haven''t written any code yet so there is no must to use
an array.
Do you guys know how to do this in a simple way?
Regards
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---