Sometimes we don’t know about all functionality of any technology. So normally we have made whole logic for our requirement. The same case occurred with me and I want share with you.
tArr = [“One”,”Two”,”Three”,”Four”,”Five”,”Six”,”Seven”];
tList = tArr.join();
You can see it’s reduce almost 70% line code and programming time as well. Most of the programmer use to with this type of stuff and as always its part of programming.
tList = “One,Two,Three,Four,Five,Six,Seven”;
tArr = tList.split(‘,’);
Hope you enjoy with this stuff and put comment if you have faced this type of stuff in any language.