reflect
Wraps the function in another function that always returns data even when it errors. The object returned has either the property error or value.
Parameters
input
Function
Examples
;; const then = ; const res = await ; // res = [{ error: Error('heyo'), value: null }, { error: null, value: 2 }]
Returns Function