assign

external fun <T : JsAny, R : T> assign(dest: R, vararg src: T?): R(source)

MDN Reference