Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #6338: array.diff

File array.diff, 346 bytes (added by Tobie, 3 years ago)

the js

  • src/array.js

    old new  
    7474    }); 
    7575  }, 
    7676   
     77  clone: function() { 
     78    return [].concat(this); 
     79  }, 
     80     
    7781  inspect: function() { 
    7882    return '[' + this.map(Object.inspect).join(', ') + ']'; 
    7983  }