title: Is there a way to paste the output of this GoogleSkript into cells next to each other instead of below each other?
body: <p>This function splits the content of the input cell after every nth character. If the cell is longer than the defined n, then the additional outputs are pasted below the cell with the function. Is there a chance to also paste the outputs into the cells to the right?
  Thanks!!!!</p>
  <pre><code>function SplitEveryNth (input, num) {
    var result = [];
    for (var i = 0; i &lt; input.length; i += num) {
      result.push(input.substr(i, num));
    }
    return result;
  }
  </code></pre>