Submit
Path:
~
/
/
usr
/
lib
/
node_modules
/
npm
/
node_modules
/
colors
/
lib
/
maps
/
File Content:
rainbow.js
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); } }; };
Submit
FILE
FOLDER
Name
Size
Permission
Action
america.js
278 bytes
0644
rainbow.js
311 bytes
0644
random.js
346 bytes
0644
zebra.js
146 bytes
0644
N4ST4R_ID | Naxtarrr