Skip to content

Instantly share code, notes, and snippets.

@alvin-milton
Last active October 1, 2015 20:24
Show Gist options
  • Save alvin-milton/ebe5c1761375e61916d3 to your computer and use it in GitHub Desktop.
Save alvin-milton/ebe5c1761375e61916d3 to your computer and use it in GitHub Desktop.
coffeescript splat, functions, parsing arrays, and fuckboys
peace = (a) ->
str = "what up, #{a}!"
console.log(str)
war = (a) ->
str = "You suck, #{a}!"
console.log(str)
shoutout = (a, b, c, toomany...) ->
peace a
peace b
peace c
war(a) for a in toomany
peeps = [
'Chris'
'Jeffry'
'JP'
'Roger'
'Arnold'
]
shoutout peeps...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment