Ad
  • Custom User Avatar

    Is it a solution when, instead of implementing the solution, the function just calls another function that solves the problem?

  • Custom User Avatar

    Your writing is really concise, but I find it executes two extra operations. Under the hood, it converts to boolean, the main intent, then operates "!" twice.
    Plus it is harder to read, as the double negation isn't the main propose of the code, but the undelrying conversion that takes place.