Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
not Every Object has the native toString Method, not even every native Object (for example HTMLDivElement)
  • Loading branch information
Rydori committed Sep 22, 2017
1 parent 0047225 commit 989c504
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/helpers.core.js
Expand Up @@ -48,7 +48,7 @@ var helpers = {
* @since 2.7.0
*/
isObject: function(value) {
return value !== null && Object.prototype.toString.call(value) === '[object Object]';
return value !== null && typeof value === 'object';
},

/**
Expand Down

0 comments on commit 989c504

Please sign in to comment.