UNPKG

maycur-business

Version:

maycur business react components of web

12 lines (9 loc) 578 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = ispromise; function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } function ispromise(value) { return value && _typeof(value) === "object" && typeof value.then === "function"; }