lib/prod.js
// Get the line and column-based `position` for `offset` in the bound indices.
Get the line and column-based `position` for `offset` in the bound indices.
Get the line and column - based ` position ` for ` offset ` in the bound indices .
function offsetToPosition(offset) {
    var index = -1;
    var length = indices.length;
    if (offset < 0) {
      return {}
    }
    while (++index < length) {
      if (indices[index] > offset) {
        return {
          line: index + 1,
          column: offset - (indices[index - 1] || 0) + 1,
          offset: offset
        }
      }
    }
    return {}
  }
function offsetToPosition ( offset ) { var index = - 1 ; var length = indices . length ; if ( offset < 0 ) { return { } } while ( ++ index < length ) { if ( indices [ index ] > offset ) { return { line : index + 1 , column : offset - ( indices [ index - 1 ] || 0 ) + 1 , offset : offset } } } return { } }
Get the line and column-based `position` for `offset` in the bound indices.
Get the line and column - based ` position ` for ` offset ` in the bound indices .