america.js 307 B

123456789101112
  1. var colors = require('../colors');
  2. module['exports'] = (function() {
  3. return function (letter, i, exploded) {
  4. if(letter === " ") return letter;
  5. switch(i%3) {
  6. case 0: return colors.red(letter);
  7. case 1: return colors.white(letter)
  8. case 2: return colors.blue(letter)
  9. }
  10. }
  11. })();