UNPKG

@adapty/capacitor

Version:
9 lines 392 B
/** * Removes undefined properties from an object, preserving the original type structure * @param obj - Source object with potentially undefined values * @returns Object with undefined values filtered out */ export function filterUndefined(obj) { return Object.fromEntries(Object.entries(obj).filter(([_, value]) => value !== undefined)); } //# sourceMappingURL=compact-object.js.map