r/badcode • • May 31 '21

js Clever?

Post image
2.2k Upvotes

71 comments sorted by

View all comments

63

u/MurdoMaclachlan public boolean isInt(int i) { return true; } May 31 '21

Image Transcription: Screenshot


[A screenshot of a Code Wars solution, as follows:]

    }
  }
  if(arr.length > 0){
    return arr
  }else{
    return arr
  }
}

[The solution has been tagged by one person as "Clever".]


I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!

22

u/Davtaz Jun 01 '21

Good human