UNPKG

@techmely/utils

Version:

Collection of helpful JavaScript / TypeScript utils

13 lines (10 loc) 279 B
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 };