Skip to content

Commit

Permalink
Change null check in isArray from !== to !=
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Kifer committed Jan 11, 2016
1 parent 19d27d6 commit 2e5f193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
}

function isArray(obj){
return obj !== null && typeof obj === 'object' && typeof obj.length === 'number' && toString(obj) === '[object Array]';
return obj != null && typeof obj === 'object' && typeof obj.length === 'number' && toString(obj) === '[object Array]';
}

function isBoolean(obj){
Expand Down

0 comments on commit 2e5f193

Please sign in to comment.