title: how to update new objects to a local storage
body: <p>Hi i have a local storage and i would update it on button click, i am updating it but i am getting new arrays added up, i need only new objects to get added up </p>
  
  <pre><code>   logForm(form) {
          this.hideFooter = true;
          var EnteredName = form.value.name;
          var EnteredNumber = form.value.number;
  
         this.enteredContact.push({
              name: form.value.name,
              service: form.value.service,
              number:form.value.number
          })
  
          this.nativeStorage.getItem('contact') .then(
              data =&gt; {
              console.log(data)
              var empty = []
              empty.push(data);
              empty.push(this.enteredContact)
              console.log("entered date", this.enteredContact)
              this.nativeStorage.setItem('contact', this.enteredContact);
               this.nativeStorage.getItem('contact').then(
                      data =&gt;{
                              this.ViewContacts = data;
                      })
  
          },
              error =&gt;{
                   console.error(error.code);
                   if (error.code === 2) {
                       this.nativeStorage.setItem('contact', this.enteredContact);
                       this.nativeStorage.getItem('contact').then(
                          data =&gt;{
                                  this.ViewContacts = data;
                                  this.disableReset = false
                                  console.log("contact", data)
                              }
                       )
                   } else {
  
                   }
              }
  
          );
      }
  </code></pre>
  
  <p>i am getting like this:
  <a href="https://i.stack.imgur.com/EmSql.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EmSql.png" alt="enter image description here"></a></p>
  
  <p>I need pure objects like this</p>
  
  <p><a href="https://i.stack.imgur.com/sD3Rp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sD3Rp.png" alt="enter image description here"></a></p>
  
  <p>I am creating a something similar to a phone book i would get name,number,occupation and i need to store it an then show that storage list .</p>
  
  <p>what happens with this updated code is i could able to store data but when i move back a page and if i come again the storage gets to 0</p>