export const shake = (obj) => {
    if (obj == null)
        return obj;
    if (typeof obj !== 'object')
        return obj;
    // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
    const initialValue = {};
    return Object.entries(obj).reduce((acc, [k, v]) => {
        if (v === undefined)
            return acc;
        return { ...acc, [k]: v };
    }, initialValue);
};
//# sourceMappingURL=object.js.map