Const
A helper to try an async function that returns undefined if it fails.
e.g. const result = await guard(fetchUsers)() ?? [];
Optional
A helper to try an async function that returns undefined if it fails.
e.g. const result = await guard(fetchUsers)() ?? [];