DEV Community

Discussion on: Normalizing API Responses

Collapse
cipak profile image
Ciprian Șerbu

if (isNaN(status) || (status !== 0 || status !== 1))

the second || should be &&

Collapse
mattdevio profile image
Matt G Author

Good Catch! I will update it. :)