mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
5 lines
128 B
TypeScript
5 lines
128 B
TypeScript
export const getIdFromURL = (url: string) => {
|
|
const id = Number(url.split("/")?.pop()?.split("?")?.[0]);
|
|
return id;
|
|
};
|