Guest User

Untitled

a guest
Feb 16th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. function lpad(n, size) {
  2. return (n+'').length >= size ? (n+'') : ((new Array(size+1)).join('0') + '' + n).substr(size*-1);
  3. }
Add Comment
Please, Sign In to add comment