Skip to content

Commit

Permalink
Fix isObject helper method
Browse files Browse the repository at this point in the history
  • Loading branch information
TannerPerrien committed Apr 25, 2018
1 parent 8dba7e7 commit 3e70754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ImportJSON.gs
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ function transformData_(data, options, transformFunc) {
* Returns true if the given test value is an object; false otherwise.
*/
function isObject_(test) {
return Object.prototype.toString.call(test) === '[object Object]';
return typeof test === "object" && test !== null
}

/**
Expand Down

0 comments on commit 3e70754

Please sign in to comment.