title: Can I add specific data to an attribute of an object?
body: <p>I know the below code is not correct, but I thought it would show the intention. Is this possible to do? I want this function to update the original array, with all orderno being in the format 000.0.000.00000.0.</p>
  
  <pre><code>let cars= [ 
    {orderno: "5766302385925", make: "Alfa", dealership: "NA"},
    {orderno: "4663873261390", make: "Merc", dealership: "NA"},
    {orderno: "8458821291579" , make: "BMW", dealership: "EU"},
    {orderno: "3376768687480", make: "Ford", dealership: "NA"},
    {orderno: "5186132840921", make: "Buick", dealership: "EU"},
  ];
  
  function addOrderDot() {
      for (var i=0; i&lt;cars.length; i++) {
      cars.orderno[i].splice(2,0,'.')
      cars.orderno[i].splice(3,0,'.')
      cars.orderno[i].splice(6,0,'.')
      cars.orderno[i].splice(11,0,'.')
      } 
  }
  </code></pre>
  
  <p>Desired array after function:</p>
  
  <pre><code>let cars= [ 
    {orderno: "576.6.302.38592.5", make: "Alfa", dealership: "NA"},
    {orderno: "466.3.873.26139.0", make: "Merc", dealership: "NA"},
    {orderno: "845.8.821.29157.9" , make: "BMW", dealership: "EU"},
    {orderno: "337.6.768.68748.0", make: "Ford", dealership: "NA"},
    {orderno: "518.6.132.84092.1", make: "Buick", dealership: "EU"},
  ];
  </code></pre>