extend

fun extend(node: Node, offset: Int = definedExternally)(source)

The Selection.extend() method moves the focus of the selection to a specified point.

MDN Reference