Sha256: 476bfaac2c2e1f3c7e297ecf0384a922168aac5f2fe933cd2a5afa4ab661ccef
Contents?: true
Size: 344 Bytes
Versions: 88
Compression:
Stored size: 344 Bytes
Contents
var colors = require('../colors'); module['exports'] = (function () { var rainbowColors = ['red', 'yellow', 'green', 'blue', 'magenta']; //RoY G BiV return function (letter, i, exploded) { if (letter === " ") { return letter; } else { return colors[rainbowColors[i++ % rainbowColors.length]](letter); } }; })();
Version data entries
88 entries across 86 versions & 9 rubygems