保誠-保戶業務員媒合平台
tomasysh
2025-01-02 4efb98f2b554b76270b12837db7a7f724e2ede89
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
'use strict';
 
exports.__esModule = true;
exports.isDefined = exports.isUndefined = exports.isFunction = undefined;
 
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
 
exports.isString = isString;
exports.isObject = isObject;
exports.isHtmlElement = isHtmlElement;
 
var _vue = require('vue');
 
var _vue2 = _interopRequireDefault(_vue);
 
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
 
function isString(obj) {
  return Object.prototype.toString.call(obj) === '[object String]';
}
 
function isObject(obj) {
  return Object.prototype.toString.call(obj) === '[object Object]';
}
 
function isHtmlElement(node) {
  return node && node.nodeType === Node.ELEMENT_NODE;
}
 
/**
 *  - Inspired:
 *    https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js
 */
var isFunction = function isFunction(functionToCheck) {
  var getType = {};
  return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
};
 
if (typeof /./ !== 'function' && (typeof Int8Array === 'undefined' ? 'undefined' : _typeof(Int8Array)) !== 'object' && (_vue2.default.prototype.$isServer || typeof document.childNodes !== 'function')) {
  exports.isFunction = isFunction = function isFunction(obj) {
    return typeof obj === 'function' || false;
  };
}
 
exports.isFunction = isFunction;
var isUndefined = exports.isUndefined = function isUndefined(val) {
  return val === void 0;
};
 
var isDefined = exports.isDefined = function isDefined(val) {
  return val !== undefined && val !== null;
};