title: Splitting data passed from a function
body: <p>I have 2 functions:</p>
  
  <pre><code>function1() {
      let arraydata = ['data1', 'data2', 'data3'];
      function2(`save ${arraydata} thefilename`);
  }
  
  function2(data) {
      let theArray = data.content.split(" ")[1];
      let theFilename = data.content.split(" ")[2];
  }
  </code></pre>
  
  <p>data on function 2 is retuning this:</p>
  
  <pre><code>save data1,data2,data3 thefilename 
  </code></pre>
  
  <p>I need data on function2 to appear as:</p>
  
  <pre><code>save ['data1', 'data2', 'data3'] thefilename 
  </code></pre>
  
  <p>so I can split it.</p>
  
  <p>How can I do this?</p>