Files
Crm-Frontend/src/app/deals/utils/statusId.ts

7 lines
206 B
TypeScript

const STATUS_POSTFIX = "-status";
export const isStatusId = (rawId: string) => rawId.endsWith(STATUS_POSTFIX);
export const getStatusId = (rawId: string) =>
Number(rawId.replace(STATUS_POSTFIX, ""));