Files
blitzkit/packages/core/src/blitz/normalizeIds.ts
T
2024-09-08 10:24:48 -05:00

4 lines
132 B
TypeScript

export function normalizeIds(ids: number | number[]): string {
return typeof ids === 'number' ? ids.toString() : ids.join(',');
}