Ad
  • Custom User Avatar

    Very interesting, I have no idea how this could possibly be true.. I will have to investigate. :)

    Thanks!

  • Custom User Avatar

    How is this voted up for the best practice?

    It's nice to read and very short, let's even say "clever", but, it makes you go through the array multiple times - every time you run indexOf().

    Very inefficient.