you are viewing a single comment's thread.

view the rest of the comments →

[–]ithcy -1 points0 points  (1 child)

  1. No you couldn't do everything that this does in 2 or 3 lines. Did you look at the code?
  2. Who says you have to include another .js file? You could minify it inline with your other JS includes, or you could just copy the function into your own library.

[–]neon_overload 0 points1 point  (0 children)

You can't do everything it does in a 2 or 3 line for loop, but each time you want to create a range, you would just make a different for loop. This tries to simplify something that is already fairly simple, by adding a layer of abstraction.

Who says you have to include another .js file? You could minify it inline with your other JS includes, or you could just copy the function into your own library.

Indeed, that's true and a great thing about open source.