Shouldn't your equality check be "==" instead of "===" ?

Also, try modifying your loop so that after the first correct match, it does
a return true;
that way, you don't need to process the entire loop

Reply via email to