Angular2 or TypeScript Left padding a String with Zeros
<p>I have a number let say 9. But I need it as String "09".</p>

<p>I know i can write my own logic. But I am looking for a implicit util function which can pad it.</p>

<p>I am using angular2 with TypeScript. Looking for something like <a href="https://stackoverflow.com/questions/4469717/left-padding-a-string-with-zeros">this</a>.</p>

<p>Just Similar like java</p>

<pre><code>String.format("%010d", Integer.parseInt(mystring));
</code></pre>