spec/lib/jsreporter.js
function failures (items) {
      var fs = [], i, v;
      for (i = 0; i < items.length; i += 1) {
          v = items[i];
          if (!v.passed_) {
              fs.push(v);
          }
      }
      return fs;
  }
function failures (items) {
      var fs = [], i, v;
      for (i = 0; i < items.length; i += 1) {
          v = items[i];
          if (!v.passed_) {
              fs.push(v);
          }
      }
      return fs;
  }
function failures ( items ) { var fs = [ ] , i , v ; for ( i = 0 ; i < items . length ; i += 1 ) { v = items [ i ] ; if ( ! v . passed_ ) { fs . push ( v ) ; } } return fs ; }
Create a new array which contains only the failed items.
@param items Items which will be filtered
@returns {Array} of failed items
Create a new array which contains only the failed items .