Files
metube/src/lib/query.ts
T
2026-04-14 14:39:13 -05:00

8 lines
162 B
TypeScript

export function singleValue(input: string | string[] | undefined): string | undefined {
if (Array.isArray(input)) {
return input[0];
}
return input;
}