Skip to content

Commit ffb30e5

Browse files
authored
Merge pull request #49 from imatveev/issue-38
Fix "in" rule
2 parents b39a4fa + 342aff3 commit ffb30e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ http://ricostacruz.com/cheatsheets/umdjs.html
7575
console.log(a); return a;
7676
},
7777
"in": function(a, b) {
78-
if(typeof b.indexOf === "undefined") return false;
78+
if(!b || typeof b.indexOf === "undefined") return false;
7979
return (b.indexOf(a) !== -1);
8080
},
8181
"cat": function() {

0 commit comments

Comments
 (0)