EnoError » selection

selection → [[line, column], [line, column]]

Returns a selection as an array of the form [[line, column], [line, column]], indicating a text range to select if an application wants to offer the user a way to get a selection for the error in the input.

javascripttry {
  // ...
} catch(err) {
  if(err instanceof EnoError) {
    err.selection;  // returns [[3, 14], [3, 23]]
  }
}

Return value

An array, where [0] is the begin of the selection and [1] is the end,and both begin and end are each again an array, where [0] is theline number, and [1] is the column number.