Skip to content

A desktop coding agent with free access to frontier models.

TypeScript
173 B
Raw Blame
export function trimTrailingSlashes(value: string): string {
  let end = value.length;
  while (end > 0 && value[end - 1] === "/") end -= 1;
  return value.slice(0, end);
}