Returning Boolen values from JS functions.
Closed this issue · 3 comments
aashimgarg commented
Description of the enhancement
Many of the JS functions are used only for the if else purposes.
But, all the comparison operators return boolean values. So we can replace the if-else statements with the simple return value. I think this will be very useful.
This will minimise and enhance the code a lot.
@anushbhatia what are your thoughts?
Screenshots
Screenshots of the proposed changes compared with the current version of the project
aashimgarg commented
@anushbhatia what are your thoughts?
anushbhatia commented
ok but it should decrease the lines of code okay?
aashimgarg commented
ok but it should decrease the lines of code okay?
yes for sure!!!