pipe/plumber.js
function (content, type) {
        var results = {};

        if (content === undefined) {
            return results;
        }

        _.forEach(content, function (element, key) {
            if (element === undefined || element.type === undefined || element.type !== type) {
                return;
            }

            results[key] = element;
        });

        return results;
    }
function (content, type) {
        var results = {};

        if (content === undefined) {
            return results;
        }

        _.forEach(content, function (element, key) {
            if (element === undefined || element.type === undefined || element.type !== type) {
                return;
            }

            results[key] = element;
        });

        return results;
    }
function ( content , type ) { var results = { } ; if ( content === undefined ) { return results ; } _ . forEach ( content , function ( element , key ) { if ( element === undefined || element . type === undefined || element . type !== type ) { return ; } results [ key ] = element ; } ) ; return results ; }
Sorts out a given type of content containers from the pipe
@param  {Object} content    Pipe content
@param  {String} type       Type of content to sort out (e.g. Pages, Posts or Statics)
@return {Object}            Object containing only content containers from a given type
Sorts out a given type of content containers from the pipe