Skip to content

Commit

Permalink
transforms: fix _typeof helper
Browse files Browse the repository at this point in the history
  • Loading branch information
wessberg authored Oct 24, 2020
1 parent 81caf41 commit 6b03c65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ecmascript/transforms/src/helpers/_type_of.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
var _typeof = function (obj) {
return obj && obj.constructor === Symbol ? "symbol" : typeof obj;
};
var _typeof = function(obj) {
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
};

0 comments on commit 6b03c65

Please sign in to comment.