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
typeModel={id: string}constmodels: Model[]=[{id: '0'},{id: '1'},{id: '2'}]constids=['1','3']constvalues=ids.map(id=>models.find(model=>model.id===id)).filter(model=>model!==undefined)// values type should be Model[]
π Actual behavior
values is of type (Model | undefined)[] even though undefined values are excluded thanks to the filter function
π Expected behavior
values should be of type Model[]
vith, linthertoss, camdendotlol, MrDesjardins, dgrcode and 4 more