function filter(data) {
                    return _.filter(data, function (item) {
                        return item.buildStatus == 'Success' && Math.floor(moment(item.endTime).endOf('day').diff(moment(new Date()).endOf('day'), 'days')) >= -15;
                    });
                }
// filter to successful builds in the last 15 days
filter to successful builds in the last 15 days
filter to successful builds in the last 15 days
function filter(data) {
                    return _.filter(data, function (item) {
                        return item.buildStatus == 'Success' && Math.floor(moment(item.endTime).endOf('day').diff(moment(new Date()).endOf('day'), 'days')) >= -15;
                    });
                }
function filter ( data ) { return _ . filter ( data , function ( item ) { return item . buildStatus == 'Success' && Math . floor ( moment ( item . endTime ) . endOf ( 'day' ) . diff ( moment ( new Date ( ) ) . endOf ( 'day' ) , 'days' ) ) >= - 15 ; } ) ; }
filter to successful builds in the last 15 days
filter to successful builds in the last 15 days