| 123456789101112131415161718192021222324252627282930 |
- 'use strict';
- /**
- *
- *
- * @author Zhong
- * @date 2019/11/12
- * @version
- */
- ((factory) => {
- if (typeof module !== 'undefined') {
- module.exports = factory();
- } else {
- window._commonUtil = factory();
- }
- })(() => {
- function isDef(val) {
- return typeof val !== 'undefined' && val !== null;
- }
-
- function isEmptyVal(val) {
- return val === null || val === undefined || val === '';
- }
- return {
- isDef,
- isEmptyVal
- };
- });
|