lib/multi-wrap-guide-view.js
// Removes a value from the list of positions, if one exists, near given position.
Removes a value from the list of positions, if one exists, near given position.
Removes a value from the list of positions if one exists near given position .
removeNearPosition (pos, list) {
    let removed = false
    const rvalue = list.slice(0)
    for (const i of [pos, pos - 1, pos + 1, pos - 2, pos + 2]) {
      const index = list.indexOf(i)
      if (index > -1) {
        rvalue.splice(index, 1)
        removed = true
        break
      }
    }
    return [removed, rvalue]
  }
removeNearPosition ( pos , list ) { let removed = false const rvalue = list . slice ( 0 ) for ( const i of [ pos , pos - 1 , pos + 1 , pos - 2 , pos + 2 ] ) { const index = list . indexOf ( i ) if ( index > - 1 ) { rvalue . splice ( index , 1 ) removed = true break } } return [ removed , rvalue ] }
Removes a value from the list of positions, if one exists, near given position.
Removes a value from the list of positions if one exists near given position .