Usage
Split method of String prototype is used to seperate the string to array using delimiter/separator.
|
Syntax
Spring.split(separator);
|
var str = "raja|ram|riji|vijay|vidhyaa";
var arr = str.split("|");
document.write(arr);
|
Output
raja,ram,riji,vijay,vidhyaa
|