Skip to content

Instantly share code, notes, and snippets.

View alexandre1985's full-sized avatar
🛂
It's a Control System when Condition is required 2 get something in or out of it

Daniel Santos alexandre1985

🛂
It's a Control System when Condition is required 2 get something in or out of it
View GitHub Profile
@zhang6464
zhang6464 / Array.prototype.map.js
Created October 11, 2014 11:12
javascript Array.prototype.map implement.
!function(){
if( typeof Array.prototype.map == 'function')
return;
Array.prototype.map = function(callback){
var i = 0,
length = this.length,
res = [];
if( callback && typeof callback == 'function' ){
for(;i<length;i++)