Skip to content

Commit 342aff3

Browse files
author
ivan.m
committed
Fix in rule
1 parent b39a4fa commit 342aff3

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)