Posts by Gustavo Stefano • 103 points
1 post
-
10
votes2
answers230
viewsQ: What does the / +/g parameter mean in the . split() method?
Can anyone explain to me what the parameter means / +/g within a method .split()? var message = "-lucas o p i "; var args = message.slice(1).trim().split(/ +/g); var comando =…