StrSplit



StrSplit method
Pas2JS pascal source code
WriteLn(StrSplit('a,b', ',')[1]); var s := 'a,b'; WriteLn(StrSplit(s, ',')[0]); var k := 1; WriteLn(StrSplit(s, ',')[k]); { <<< CONSOLE OUTPUTS >>> b a b }