transforms: fix _typeof helper

This commit is contained in:
Frederik Wessberg 2020-10-24 16:26:13 +02:00 committed by GitHub
parent 81caf41bf6
commit 6b03c659ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,3 @@
var _typeof = function(obj) {
return obj && obj.constructor === Symbol ? "symbol" : typeof obj;
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
};