lib/highlighter.js
function(subject) {
    if (this.isScalar() && this.hasSearch()) {
      var search = this.getSearch();
      return this.highlightChildren(subject, search);
    }

    return this.props.children;
  }
function(subject) {
    if (this.isScalar() && this.hasSearch()) {
      var search = this.getSearch();
      return this.highlightChildren(subject, search);
    }

    return this.props.children;
  }
function ( subject ) { if ( this . isScalar ( ) && this . hasSearch ( ) ) { var search = this . getSearch ( ) ; return this . highlightChildren ( subject , search ) ; } return this . props . children ; }
A wrapper to the highlight method to determine when the highlighting
process should occur.

@param  {string} subject
The body of text that will be searched for highlighted words.

@return {Array}
An array of ReactElements
A wrapper to the highlight method to determine when the highlighting process should occur .