code: function inView ( $elems, container, opts ) {
  
          var config,
              elemsInView = [];
  
          if ( ! $elems.length ) return $();
  
          config = _prepareConfig( $elems, container, opts );
  
          // Check if the elements are children of the container. For performance reasons, only the first element is
          // examined.
          checkHierarchy( $elems[0], config.container );
  
          $elems.each( function () {
              if ( _isInView( this, config ) ) elemsInView.push( this );
          } );
  
          return $( elemsInView );
  
      }
docs: Does the actual work of $.fn.inView. Protected from external modification. See $.fn.inView for details.
  
  @param {jQuery}                                    $elems
  @param {Window|Document|HTMLElement|jQuery|string} [container=window]
  @param {Object}                                    [opts]
  @param {boolean}                                   [opts.partially=false]
  @param {boolean}                                   [opts.excludeHidden=false]
  @param {string}                                    [opts.direction="both"]
  @param {string}                                    [opts.box="border-box"]     alternatively, "content-box"
  @param {number|string}                             [opts.tolerance=0]          number only (px), or with unit ("px" or "%" only)
  
  @returns {jQuery}