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
Expected behavior:
it shouldn't throw the error Object is possibly 'undefined' Actual behavior:
It throws the error Object is possibly 'undefined' in these if
if (person1[orderBy] > person2[orderBy])
if (person1[orderBy] < person2[orderBy])
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered:
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
I'm doing a extreme check to not get object undefined but typescript throw the error
Object is possibly 'undefined'
anywayTypeScript Version: 2.7.2
Search Terms:
Code
Expected behavior:
it shouldn't throw the error
Object is possibly 'undefined'
Actual behavior:
It throws the error
Object is possibly 'undefined'
in these ifif (person1[orderBy] > person2[orderBy])
if (person1[orderBy] < person2[orderBy])
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered: