1 | 'use strict';
|
2 |
|
3 | exports.__esModule = true;
|
4 | exports.isString = isString;
|
5 | exports.isObject = isObject;
|
6 | exports.isHtmlElement = isHtmlElement;
|
7 | function isString(obj) {
|
8 | return Object.prototype.toString.call(obj) === '[object String]';
|
9 | }
|
10 |
|
11 | function isObject(obj) {
|
12 | return Object.prototype.toString.call(obj) === '[object Object]';
|
13 | }
|
14 |
|
15 | function isHtmlElement(node) {
|
16 | return node && node.nodeType === Node.ELEMENT_NODE;
|
17 | }
|
18 |
|
19 | var isFunction = exports.isFunction = function isFunction(functionToCheck) {
|
20 | var getType = {};
|
21 | return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
|
22 | };
|
23 |
|
24 | var isUndefined = exports.isUndefined = function isUndefined(val) {
|
25 | return val === void 0;
|
26 | };
|
27 |
|
28 | var isDefined = exports.isDefined = function isDefined(val) {
|
29 | return val !== undefined && val !== null;
|
30 | }; |
\ | No newline at end of file |