I think this might be clearer as `if (scrollLineIntoView === undefined) scrollLineIntoView = true;` (i.e., make it obvious that we're just supplying a default value for an optional arg).