getVariableName.js 174 B

123456
  1. module.exports = function getVariableName(index) {
  2. if (index === 0) return 'x';
  3. if (index === 1) return 'y';
  4. if (index === 2) return 'z';
  5. return 'c' + (index + 1);
  6. };