@techmely/utils
Version:
Collection of helpful JavaScript / TypeScript utils
24 lines (19 loc) • 393 B
JavaScript
/*!
* @techmely/utils
* Copyright(c) 2021-2024 Techmely <techmely.creation@gmail.com>
* MIT Licensed
*/
import {
isUndefined
} from "./chunk-446UTKLG.mjs";
// src/removeUndefinedObject.ts
function removeUndefObj(obj) {
const keys = Object.keys(obj);
for (const key of keys) {
isUndefined(obj[key]) ? obj[key] === void 0 : {};
}
return obj;
}
export {
removeUndefObj
};