export function omit, K extends keyof never>(obj: T, keys: K[]): Omit { // I'm sure this could be done in a better way, // but if we don't do this we run into issues with // the interaction between Object.entries() and // Set. const omitKeys = new Set(keys as string[]); return Object.fromEntries(Object.entries(obj).filter(([k]) => !omitKeys.has(k))) as Omit; } export const priceNumberFormat = (price: number) => Intl.NumberFormat("fa-IR").format(price);