assert

abstract fun assert(condition: Boolean = definedExternally, vararg data: Any?)(source)

MDN Reference