code: function (x, pad, r) {
                  if (typeof r === 'undefined') {
                      r = 10;
                  }
                  for (; parseInt(x, 10) < r && r > 1; r /= 10) {
                      x = pad.toString() + x;
                  }
                  return x.toString();
              }
docs: BEGIN STATIC