collapse

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

The Selection.collapse() method collapses the current selection to a single point.

MDN Reference