Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 27x 27x 10x 10x 17x 16x 16x 1x | export function getIdFromUri( uri?: string, type?: "type" | "id" ): string | undefined { if (type === "id") { const id = uri?.split(":")[2]; return id; } if (type === "type") { const type = uri?.split(":")[1]; return type; } return ""; } |