lib/dishwasher.js
function insertMultiFragment (collection, index, array) {

    // Only get the objects with the correct collection value
    var filtered = finalarray.filter(function (element) {
      return element.collection === collection;
    });

    // Map data with corresponding partials
    var map = maps.multimap(collection)
      , obj = {fragment : plates.bind(partials[collection], filtered, maps.collections())};
    ruffian = plates.bind(ruffian, obj, map);
  }
function insertMultiFragment (collection, index, array) {

    // Only get the objects with the correct collection value
    var filtered = finalarray.filter(function (element) {
      return element.collection === collection;
    });

    // Map data with corresponding partials
    var map = maps.multimap(collection)
      , obj = {fragment : plates.bind(partials[collection], filtered, maps.collections())};
    ruffian = plates.bind(ruffian, obj, map);
  }
function insertMultiFragment ( collection , index , array ) { // Only get the objects with the correct collection value var filtered = finalarray . filter ( function ( element ) { return element . collection === collection ; } ) ; // Map data with corresponding partials var map = maps . multimap ( collection ) , obj = { fragment : plates . bind ( partials [ collection ] , filtered , maps . collections ( ) ) } ; ruffian = plates . bind ( ruffian , obj , map ) ; }
This filters and renders collections of data from the array of objects
This filters and renders collections of data from the array of objects