mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
2 lines
81 B
TypeScript
2 lines
81 B
TypeScript
export const toArray = (val: unknown) => (typeof val === 'string' ? [val] : val)
|