Filtering Empty String to Option.none or Option.some in TypeScript
hi all
I have an effect that can return an empty string. how can I filter that into an
I have an effect that can return an empty string. how can I filter that into an Option.none if empty, or Option.some if contentful? I have this, but I feel like there's a better way