/**
 * Merges the provided objects shallowly and removes
 * all properties with an `undefined` value
 */
export function compact(...objects) {
    const result = {};
    objects.forEach((obj) => {
        if (!obj)
            return;
        Object.keys(obj).forEach((key) => {
            const value = obj[key];
            if (value !== void 0) {
                result[key] = value;
            }
        });
    });
    return result;
}
//# sourceMappingURL=compact.js.map
