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