UNPKG

@laravel/echo-vue

Version:

Vue hooks for seamless integration with Laravel Echo.

3 lines (2 loc) 91 B
export const toArray = <T>(item: T | T[]): T[] => Array.isArray(item) ? item : [item];