Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

165 B
Raw Blame
export function firstParam(
  value: string | string[] | undefined,
): string | undefined {
  if (Array.isArray(value)) {
    return value[0];
  }
  return value;
}