B2G/gecko/browser/devtools/webconsole/webconsole.js
/**
   * Check if the caret is at a location that allows selecting the next item in
   * history when the user presses the Down arrow key.
   *
   * @return boolean
   *         True if the caret is at a location that allows selecting the next
   *         item in history when the user presses the Down arrow key, otherwise
   *         false.
   */
Check if the caret is at a location that allows selecting the next item in
history when the user presses the Down arrow key.

@return boolean
True if the caret is at a location that allows selecting the next
item in history when the user presses the Down arrow key, otherwise
false.
Check if the caret is at a location that allows selecting the next item in history when the user presses the Down arrow key . @return boolean True if the caret is at a location that allows selecting the next item in history when the user presses the Down arrow key otherwise false .
function JST_canCaretGoNext()
  {
    let node = this.inputNode;
    if (node.selectionStart != node.selectionEnd) {
      return false;
    }
    let multiline = /[\r\n]/.test(node.value);
    return node.selectionStart == node.value.length ? true :
           node.selectionStart == 0 && !multiline;
  }
function JST_canCaretGoNext ( ) { let node = this . inputNode ; if ( node . selectionStart != node . selectionEnd ) { return false ; } let multiline = / [\r\n] / . test ( node . value ) ; return node . selectionStart == node . value . length ? true : node . selectionStart == 0 && ! multiline ; }
Check if the caret is at a location that allows selecting the next item in
 history when the user presses the Down arrow key.
Check if the caret is at a location that allows selecting the next item in history when the user presses the Down arrow key .