UNPKG

d2-ui

Version:
13 lines (9 loc) 539 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; var isClassComponent = function isClassComponent(Component) { return Boolean(Component && Component.prototype && _typeof(Component.prototype.isReactComponent) === 'object'); }; exports.default = isClassComponent;