我需要将Google Spreadsheet列索引转换为相应的字母值,例如,给定电子表格:

我需要这样做(这个功能显然不存在,这是一个例子):
getColumnLetterByIndex(4); // this should return "D"
getColumnLetterByIndex(1); // this should return "A"
getColumnLetterByIndex(6); // this should return "F"
Run Code Online (Sandbox Code Playgroud)
现在,我不记得索引是从起点0还是起点1,无论如何,概念应该是清楚的.
我没有在气体文件上找到任何关于这个的东西..我是瞎了吗?任何的想法?
谢谢