code: function (padding) {
              var p = (typeof padding === "number") ? [padding] : padding;
  
              if (p.length === 1) {
                  p[1] = p[0];
              }
              if (p.length === 2) {
                  p[2] = p[0];
              }
              if (p.length === 3) {
                  p[3] = p[1];
              }
  
              return p;
          }
docs: Convert CSS padding shorthand to longhand
  
  @param {number|Array.number} padding Element padding
  @return {Array.number}