I have this array of arrays:
["[]", "[\"http://ift.tt/2gZwhtF\"]", "[\"http://ift.tt/2yZJbid\"]", "[]", "[]", "[]", "---\n- http://ift.tt/2gZwi0H\n", "--- []\n", "---\n- http://ift.tt/2yZJbPf\n", "--- []\n", "--- []\n", "---\n- https://somewebsite.com\n", "---\n- http://ift.tt/2gZ6rWF\n", nil, nil, nil, nil, nil]
How can i :
1- remove all the empty, nil element
2- have an array of string:
["http://ift.tt/2gZwhtF", "http://ift.tt/2yZJbid", "http://ift.tt/2gZwi0H", "http://ift.tt/2yZJbPf, "https://somewebsite.com", "http://ift.tt/2gZ6rWF"]
Aucun commentaire:
Enregistrer un commentaire