line-length-index
This is a module used by Atom to keep track of the row with the longest line length.
Example
let lineLengthIndex = // Splice at a start row with a replacement row count// and an array of line lengths...lineLengthIndex // Now you can efficiently query the point at the end of the longest rowlineLengthIndex // => {row: 3, column: 50} // As text changes, you can splice in new rowslineLengthIndex // And the max row is available...lineLengthIndex // => {row: 1, column: 40}