DEV Community

Discussion on: Quick tip: How to console.log in implicitly returned arrow functions

Collapse
 
steventcramer profile image
Steven T. Cramer

Ryan just informed me that TypeScript knows console.log is void function so you need to cast it to any.

(console.log({a,b}) as any) || a + b;

Thanks again.