collapse

fun collapse(toStart: Boolean = definedExternally)(source)

MDN Reference