Posted By

adrusi on 04/21/11


Tagged

zip skel skeljs key-value


Versions (?)

Skel `zip`


 / Published in: JavaScript
 

  1. _.mixin(_.ARRAY, {
  2. zip: function(keys, values) {
  3. var obj = {};
  4. keys.forEach(function(index, value) {
  5. obj[value] = values[index];
  6. });
  7. return obj;
  8. }
  9. });

Report this snippet  

You need to login to post a comment.