Posted By

virtuallyghetto on 08/01/12


Tagged


Versions (?)

Prototype Cloning


 / Published in: JavaScript
 

  1. _.extend = function(obj) {
  2. each(slice.call(arguments, 1), function(source) {
  3. for (var prop in source) {
  4. obj[prop] = source[prop];
  5. }
  6. });
  7. return obj;
  8. }

Report this snippet  

You need to login to post a comment.