title: how to replace value id jquery with array key, after spice than change value id to array key
body: <p>I have some problem work with the array, how to change <strong><code>id</code></strong> with a <strong>new</strong> key (new_index) of an array after splice?? splice in jquery success, but how to change value <strong>"id"</strong> in array ??..</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var each_arr = [{
      id: 0,
      judul: "JUDUL 1"
  },
  {
      id: 1,
      judul: "ICIK ICIK ehem"
  },
  {
      id: 2,
      judul: "ASOLOLE"
  },
  {
      id: 3,
      judul: "IWAK PEYEK"
  }
  ];
  
  $(".radio1").on('change', function(event, state) {
      var idarr = $(this).data("id");
      each_arr.move(idarr, 0);
      console.log(each_arr);
  });
  
  Array.prototype.move = function(old_index, new_index) {
      if (new_index &gt;= this.length) {
          var k = new_index - this.length;
          while ((k--) + 1) {
              this.push(undefined);
          }
      }
      this.splice(new_index, 0, this.splice(old_index, 1)[0]);
      return this;
  };</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;input type="radio" name="radio1" class="radio1" data-id="0"&gt;0
  &lt;input type="radio" name="radio1" class="radio1" data-id="1"&gt;1
  &lt;input type="radio" name="radio1" class="radio1" data-id="2"&gt;2
  &lt;input type="radio" name="radio1" class="radio1" data-id="3"&gt;3</code></pre>
  </div>
  </div>
  </p>
  
  <p>the script running but how to change value "id" with the array key after splice??</p>