Ad
  • Default User Avatar

    Damn, can't believe I forgot about method chaining. I essentially did the same thing as this solution, but with each method on its own line. Your solution looks so much cleaner; I definitely voted Best Practice.