Category "arrow-functions"

Typescript 4.6 and Arrow Functions

We recently updated to typescript 4.6 (from 4.5) and are experiencing some weird this issues. for example we previously had a function defined at #handleUnsaved

Array.prototype.filter() expects a value to be returned at the end of function array-callback-return

I am trying handle below code and its showing enter image description here const toArray = props => (props && props.split ? props.split(',') :

Expected to return a value in arrow; function array-callback-return. Why?

I'm having some issues understanding why I'm getting a compile warning on this piece of my react code fetch('/users') .then(res => res.json())