title: How can i ignore the javascript convert leading zero to octal?
body: <p>I want to convert <code>number</code> to <code>string</code>, buti have a problem about javascript convert number that have leading zero to octal.</p>
  
  <p>I have a list of object like this</p>
  
  <pre><code>const ids = [
    { _id : 1236 },
    { _id : "abc123" },
    { _id : 012019 },
    { _id : 000010 },
    { _id : 001230 }
    { _id : 00000000000000 }
  ]
  </code></pre>
  
  <p>and i want to convert all of id in object to <code>string</code> 
  like this</p>
  
  <pre><code>[
    { _id : "1236" },
    { _id : "abc123" },
    { _id : "012345" },
    { _id : "000010 },
    { _id : "001230" },
    { _id : "00000000000000" }
  ]
  </code></pre>
  
  <p>So, i write a function like this</p>
  
  <pre><code>updateIds = () =&gt; ids.map(i =&gt; {
    i._id = i._id.toString()
    return i
  })
  
  updateIds()
  </code></pre>
  
  <p>But the result of this function is ..</p>
  
  <pre><code>[
    { _id: '1236' },
    { _id: 'abc123' },
    { _id: '012019' },
    { _id: '8' },
    { _id: '664' },
    { _id: '0' }
  ]
  </code></pre>
  
  <p>how can i ignore javascript convert <code>000010</code> and <code>001230</code> to octal ?</p>
  
  <p>Ps. I think i cant use <code>pad</code> function to write leading zero because value of <code>_id</code> is dynamic. i don't know that length.</p>