dist/ng-describe.js
function or() {
    var predicates = Array.prototype.slice.call(arguments, 0);
    if (!predicates.length) {
      throw new Error('empty list of arguments to or');
    }

    return function orCheck() {
      var values = Array.prototype.slice.call(arguments, 0);
      return predicates.some(function (predicate) {
        try {
          return check.fn(predicate) ?
            predicate.apply(null, values) : Boolean(predicate);
        } catch (err) {
          // treat exceptions as false
          return false;
        }
      });
    };
  }
function or() {
    var predicates = Array.prototype.slice.call(arguments, 0);
    if (!predicates.length) {
      throw new Error('empty list of arguments to or');
    }

    return function orCheck() {
      var values = Array.prototype.slice.call(arguments, 0);
      return predicates.some(function (predicate) {
        try {
          return check.fn(predicate) ?
            predicate.apply(null, values) : Boolean(predicate);
        } catch (err) {
          // treat exceptions as false
          return false;
        }
      });
    };
  }
function or ( ) { var predicates = Array . prototype . slice . call ( arguments , 0 ) ; if ( ! predicates . length ) { throw new Error ( 'empty list of arguments to or' ) ; } return function orCheck ( ) { var values = Array . prototype . slice . call ( arguments , 0 ) ; return predicates . some ( function ( predicate ) { try { return check . fn ( predicate ) ? predicate . apply ( null , values ) : Boolean ( predicate ) ; } catch ( err ) { // treat exceptions as false return false ; } } ) ; } ; }
Combines multiple predicate functions to produce new OR predicate
@method or
Combines multiple predicate functions to produce new OR predicate