"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
const omitUndefinedAndEmptyArr = obj => {
  const newObj = {};
  Object.keys(obj || {}).forEach(key => {
    var _obj$key;
    if (Array.isArray(obj[key]) && ((_obj$key = obj[key]) === null || _obj$key === void 0 ? void 0 : _obj$key.length) === 0) {
      return;
    }
    if (obj[key] === undefined) {
      return;
    }
    newObj[key] = obj[key];
  });
  return newObj;
};
var _default = omitUndefinedAndEmptyArr;
exports.default = _default;