6 lines
163 B
TypeScript
6 lines
163 B
TypeScript
|
|
const getEntityId = (entityId: string, namespace: string | undefined) => {
|
||
|
|
return namespace ? `${entityId}/${namespace}` : entityId;
|
||
|
|
};
|
||
|
|
|
||
|
|
export { getEntityId };
|