src/check-types.js
function ofModifier (target, type, predicate) {
    var modifiedPredicate = function () {
      var collection, args;

      collection = arguments[0];

      if (target === 'maybe' && not.assigned(collection)) {
        return true;
      }

      if (!type(collection)) {
        return false;
      }

      collection = coerceCollection(type, collection);
      args = slice.call(arguments, 1);

      try {
        collection.forEach(function (item) {
          if (
            (target !== 'maybe' || assigned(item)) &&
            !predicate.apply(null, [ item ].concat(args))
          ) {
            // TODO: Replace with for...of when ES6 is required.
            throw 0;
          }
        });
      } catch (ignore) {
        return false;
      }

      return true;
    };
    modifiedPredicate.l = predicate.length;
    return modifiedPredicate;
  }
function ofModifier (target, type, predicate) {
    var modifiedPredicate = function () {
      var collection, args;

      collection = arguments[0];

      if (target === 'maybe' && not.assigned(collection)) {
        return true;
      }

      if (!type(collection)) {
        return false;
      }

      collection = coerceCollection(type, collection);
      args = slice.call(arguments, 1);

      try {
        collection.forEach(function (item) {
          if (
            (target !== 'maybe' || assigned(item)) &&
            !predicate.apply(null, [ item ].concat(args))
          ) {
            // TODO: Replace with for...of when ES6 is required.
            throw 0;
          }
        });
      } catch (ignore) {
        return false;
      }

      return true;
    };
    modifiedPredicate.l = predicate.length;
    return modifiedPredicate;
  }
function ofModifier ( target , type , predicate ) { var modifiedPredicate = function ( ) { var collection , args ; collection = arguments [ 0 ] ; if ( target === 'maybe' && not . assigned ( collection ) ) { return true ; } if ( ! type ( collection ) ) { return false ; } collection = coerceCollection ( type , collection ) ; args = slice . call ( arguments , 1 ) ; try { collection . forEach ( function ( item ) { if ( ( target !== 'maybe' || assigned ( item ) ) && ! predicate . apply ( null , [ item ] . concat ( args ) ) ) { // TODO: Replace with for...of when ES6 is required. throw 0 ; } } ) ; } catch ( ignore ) { return false ; } return true ; } ; modifiedPredicate . l = predicate . length ; return modifiedPredicate ; }
Public modifier `of`.

Applies the chained predicate to members of the collection.
Public modifier of .