observe

fun observe(target: Element, options: ResizeObserverOptions = definedExternally)(source)

MDN Reference