const px = ( x ) => ( typeof x === "string" ? x : x + "px" ) ; param icon param width param height export const withSize = ( icon , width , height = width , attribs ? ) => [ icon [ 0 ] , { ... icon [ 1 ] , width : px ( width ) , height : px ( height ) , ... attribs , } , ... icon . slice ( 2 ) , ] ;