I have an array like this
[["ContactCreate", "PolicyCreate"], ["Page_1", "Page_3"], ["Page_2"]]
I want to transpose this array, But If I transpose this array, this says
Uncaught exception: element size differs (1 should be 2)
Now I have array with various sizes like this, Is there anyway I can fill fill nil
in the size of the greater array and then I can transpose ? Like
[["ContactCreate", "PolicyCreate"], ["Page_1", "Page_3"], ["Page_2",nil]]
If
[["ContactCreate", "PolicyCreate","contactCreate], ["Page_1", "Page_3"], ["Page_2"]]
then it has to be
[["ContactCreate", "PolicyCreate","contactCreate], ["Page_1", "Page_3",nil], ["Page_2",nil,nil]]