News for hackers. Stuff that matters.
Re:Fun.js – Just a sketch by dhucerbin on Friday June 07, 2013 @07:35AM (#5838311)
Some questions from JS novice:

Why map isn't implemented:

    function map(fun, coll) {
      if (exists(coll)) return _map(fun)(coll);
      return _map(fun);
    }
Why use arguments when you can name your parameter in declaration?

And why _map is defined in global scope? Shouldn't it be better defined inside map function? What are up/downsides in performance for this move?

There are no comments on this comment yet.