title: Javascript map function converting values to decimal
body: <p>I have a array like this.</p>
  
  <pre><code>var elements=[5614,6619,7220,7320,7830,8220,0111,0112,0113,0142,0149]
  </code></pre>
  
  <p>Am converting every element to string so as to use with jquery autocomplete.
  Am using .map function to do this.</p>
  
  <pre><code>elements = elements.map(String);
  </code></pre>
  
  <p>output is </p>
  
  <pre><code>["5614", "6619", "7220", "7320", "7830", "8220", "73", "74", "75", "98", "149"]
  </code></pre>
  
  <p>Function is taking <code>0111,0112,0113,0142</code> all these values as <code>Octal values</code> and converting them to <code>decimal</code>.</p>
  
  <p>I don't want this conversation and want to preserve leading Zero also , How can I do this , please help.</p>