hyTags
HomeHome DocumentationDocumentation

object-delete

Deletes the property with the specified key from the object.
Parameter
Type
Description
self
Object
The object to delete the property from.
key
String
The key of the property to delete.
return
void
No return value.
Test Case:Delete key from object
    <div></div>
    
    <object-new>
    <object-set key="key">
      <string-new value="value">
    </object-set>
    <object-delete key="key">
    <object-get key="key" type="string">
    <value-is-nil>
    <assert-true>
    
    👆 Try to change something!
  • Test succeeded Test failed