Skip to content

Commit

Permalink
Fix for issue fordth#21
Browse files Browse the repository at this point in the history
  • Loading branch information
mcoakley committed Nov 4, 2016
1 parent 789558d commit 5726883
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion jinqjs-unstable.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ var jinqJs = function (settings) {
},

isObject = function (obj) {
return (obj !== null && (obj.constructor === Object || isArray(obj)));
var type = typeof obj;
return obj != null && (type == 'object' || type == 'function');
},

isString = function (str) {
Expand Down
3 changes: 2 additions & 1 deletion jinqjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ var jinqJs = function (settings) {
},

isObject = function (obj) {
return (obj !== null && (obj.constructor === Object || isArray(obj)));
var type = typeof obj;
return obj != null && (type == 'object' || type == 'function');
},

isString = function (str) {
Expand Down

0 comments on commit 5726883

Please sign in to comment.