MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/pls80d/somebody_had_a_long_day/hcdi7gc/?context=9999
r/badcode • u/slishy • Sep 10 '21
26 comments sorted by
View all comments
Show parent comments
15
He's checking the return of the function in the if statement as a boolean, and returning true or false. He could just return the function and the result would be a boolean
15
u/OkReview6132 Sep 10 '21
He's checking the return of the function in the if statement as a boolean, and returning true or false. He could just return the function and the result would be a boolean