UNPKG

svelte-phaser

Version:

Create Phaser 3 games with Svelte 3

4 lines (3 loc) 92 B
export function toArray<T>(obj: T | T[]): T[] { return Array.isArray(obj) ? obj : [obj] }