Answers for "how to convert comma separated string to array in angular"

2

separatly fetch a strings with commas inn js

$(function(){
    var s = "jpeg, jpg, gif, png";
    var match = s.split(', ')
    console.log(match)
    for (var a in match)
    {
        var variable = match[a]
        console.log(variable)
    }
})
Posted by: Guest on May-29-2020
-1

convert comma separated string to array c#

string fruit = "Apple,Banana,Orange,Strawberry";
string[] split = fruit.Split(',');
Posted by: Guest on May-29-2020

Code answers related to "how to convert comma separated string to array in angular"

Code answers related to "Javascript"

Browse Popular Code Answers by Language