module['exports'] = function(colors) { // RoY G BiV var rainbowColors = ['red', 'yellow', 'green', 'blue', 'magenta']; return function(letter, i, exploded) { if (letter === ' ') { return letter; } else { return colors[rainbowColors[i++ % rainbowColors.length]](letter); } }; };
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
america.js | File | 278 B | 0644 |
|
rainbow.js | File | 311 B | 0644 |
|
random.js | File | 346 B | 0644 |
|
zebra.js | File | 146 B | 0644 |
|