← Docs
kotlin-stdlib / kotlin.dom / clear

clear

JS
1.1
@DeprecatedSinceKotlin ( "1.4" , "1.6" ) fun Node . clear ( )
(source)
Deprecated: This API is moved to another package, use 'kotlinx.dom.clear' instead.

Removes all the children from this node.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .