Skip to main content

Home/ javascript/ Group items tagged fun

Rss Feed Group items tagged

Javier Neira

Three map implementations in javascript. Which one is better? - Stack Overflow - 1 views

  • if (!Array.prototype.map) {  Array.prototype.map = function(fun /*, thisp*/)   {    var len = this.length >>> 0;  // make sure length is a positive number    if (typeof fun != "function") // make sure the first argument is a function      throw new TypeError();    var res = new Array(len);  // initialize the resulting array    var thisp = arguments[1];  // an optional 'context' argument    for (var i = 0; i < len; i++) {      if (i in this)        res[i] = fun.call(thisp, this[i], i, this);  // fill the resulting array    }    return res;  };}
  •  
    if (!Array.prototype.map) { Array.prototype.map = function(fun /*, thisp*/) { var len = this.length >>> 0; // make sure length is a positive number if (typeof fun != "function") // make sure the first argument is a function throw new TypeError(); var res = new Array(len); // initialize the resulting array var thisp = arguments[1]; // an optional 'context' argument for (var i = 0; i < len; i++) { if (i in this) res[i] = fun.call(thisp, this[i], i, this); // fill the resulting array } return res; }; }
yc c

389 - experiments - fun with javascript - 2 views

shared by yc c on 15 Dec 09 - Cached
  •  
    fun js experiments
Ivan Pavlov

ArcLite - Arc Ported to JavaScript - 0 views

  •  
    Jonathan Tang has fallen into the Arc fun and took some time to fully implement it in JavaScript.
Mike Chelen

webchat2 - Google Code - 0 views

  •  
    A fast, highly interactive, fun chat application using a javascript, comet (real time push communication), ajax (async posting of information) modern web interface, and a custom PHP based backend daemon that interfaces between the (web) frontend and the IRC backend server.
yc c

Allan Jardine | Reflections | Secret - 1 views

  •  
    float letters to form a new word
Julian Knight

Microjs: Fantastic Micro-Frameworks and Micro-Libraries for Fun and Profit! - 1 views

  •  
    Great little site listing really useful small JavaScript libraries for all sorts of uses.
1 - 7 of 7
Showing 20 items per page