i have this simple function in which i try to pass an array to the clipboard in order to paste in in excel later on
hiddenInputOnCopyHandler = ev => {
ev.clipboardData.setData('text/plain', ev.currentTarget.value.split(','));
ev.preventDefault();
};
but i'm getting a string instead, i guess because the type passed in the setData is 'text/plain' but i couldn't find better in its documentation
now the problem is that when it's pasted in excel , the whole serialized array will take only one cell

\tinstead of comma,, (reference)ev.currentTarget.value.split(',').join('\t')