You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
filter works when you use the special construct filter(Boolean) to filter out falsy values like null. So the alternative to using something like a // $FlowIssue comment to disable Flow for a line of code is to first use map to map whatever is to be filtered to null and the remove it using the beforementioned construct, at the cost of an additional loop construct. Actually using boolean values does not work though, it has to be null or undefined for the falsy value (for Flow, the Javascript code would of course be okay with it).
Example (1st example with booleans has errors, second one with null does not)
https://flow.org/try/#0PQKgBAAgZgNg9gdzCYAodBjOA7AzgFzAEEAuYgJ3IEMBPAHgG8qyDyBLbAcwBowAjMgH5WHTgF8AfGAC8YANqowYBmGZgA5FDhx1vARqrqwY7ouWqy6vlXK7+lvkZNmVaq1QBed-dgCuMGGNUAF1ULDxCKDImFnx2Lj0hES4xGSk+bRgAUypsGTA4PgArNLB8GgAHLLgoAuKAOj4ZaVl1ZM51MJwCMAAhMiJKWkY1dsSwdsl8onqoNhh8LPIACigASiA
errors:
The text was updated successfully, but these errors were encountered: