I could simply vice versa the code to be executed by the if and else. And === is more easier to use compared to !== so why is the not equal operator used? Answer You cannot use conditional statements to convert the operators for most common cases. In your example, it would be easy and readable to convert the non-equal
Tag: operators
Is there an easy way to change one value in a nested json data with TypeScript?
TypeScript version: ^3.5.3 For this json const config = { id: 1, title: “A good day”, body: “Very detailed stories” publishedAt: “2021-01-20 12:21:12” } It can …