showing results for - "save array file"
Malia
09 Apr 2017
1var array = [{
2    x: 0,
3    y: 0
4}];
5var a = document.body.appendChild(
6    document.createElement("a")
7);
8a.download = "export.txt";
9a.href = "data:text/plain;base64," + btoa(JSON.stringify(array));
10a.innerHTML = "download example text";