Javascript Remove Empty Object After Deleting Its

Javascript Remove Empty Object After Deleting Its