Sha256: 85641874e0c1b9304099169479bf89b29b46c7e042c16cacef9b5e4c5f8b9e7f
Contents?: true
Size: 311 Bytes
Versions: 56
Compression:
Stored size: 311 Bytes
Contents
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); } }; };
Version data entries
56 entries across 55 versions & 3 rubygems