Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function inArray(cells, str) {
- for (var cell in cells) {
- if (cell.toString() == str) {
- return true;
- }
- }
- return false;
- }
- function test() {
- return inArray(["a1", "a"], "a"); //always returns false
- }
Advertisement
Add Comment
Please, Sign In to add comment