Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Actually, according to it's name that function should always return true. Sorry bro.
-
But it's wrong. s is always "TrueOrFalse". It should always return true. Please you guys :(
-
@paranoidAndroid thank you for saving me from making that comment and wasting my time.
Hey, wait a minute...
Fuck you for making me waste my time by making this much longer comment instead! -
izain2426ybool check = getCheck();
if(check == true && check != false){
return true;
}else{
return false;
} -
@graic @ScriptCoded @Codex404
Argh. I assumed it's a bool. If it's not a bool, the function is even worse. Because the name implies that the argument is either true or false. If we now can pass things that are neither.... 😮😯🤯 -
function isFalseOrUndefinedOrZeroOrEmpty(item) {
/* no ; because if JS doesn’t care, why should I?? Duh!!
*/
return !!item
}
Related Rants
-
bkwilliams29Under settings, we made a checkbox labeled “Run Program Faster”. The state was saved but it didn’t do an...
-
xonya7I had to add a "I'm not a robot" checkbox to protect an email address written in a page reachable only from ou...
-
dfox10When I worked for an online dating app, at one point we had the ridiculous idea to try to take a popular Linke...
function isTrueOrFalse(s) {
if (s == true) return true
If (s == false) return false
}
rant
wk118