About to bing strokeDashArray,how to convert a Array class to a string?

I want the link to have its own default value. How do I handle that?
Can I ignore the from and to of link:

 var linkDataArray = [
   { category: "ASSISTENT_LINE", text: "DASH",font:"...",... },
   { category: "ASSISTENT_LINE1", text: "DASH1",font:"...",... },  
 ];