code: function isEmpty(value) {
      if (value === undefined || value === null || value === '') {
          return true;
      } else if (lodash.isString(value)) {
          //\s 匹配任何空白字符，包括空格、制表符、换页符等等。等价于 [ \f\n\r\t\v]。
          return value.replace(/(^\s*)|(\s*$)/g, '').length === 0;
      } else if (lodash.isNumber(value)) {
          return isNaN(value);
      } else if (lodash.isArray(value)) {
          return value.length === 0;
      } else if (lodash.isPlainObject(value)) {
          // for (let key in value) {
          //     return !key && !0;
          // }
          // return true;
          return Object.keys(value).length === 0;
      }
      return false;
  }
docs: Checks value is empty,
  undefined, null, '', NaN, [], {} and any empty string(including spaces, tabs, formfeeds, etc.), returns true
  @param {any} value
  @returns {boolean}