I have an array ["Lorem", "", "ipsum"]
. I would like to remove the empty string from this array and get ["Lorem", "ipsum"]
.
Is there any way to do this without using the loop and traversing through each element and removing it?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…