Skip to content

Instantly share code, notes, and snippets.

@moutend
Last active August 29, 2015 13:57
Show Gist options
  • Save moutend/9519285 to your computer and use it in GitHub Desktop.
Save moutend/9519285 to your computer and use it in GitHub Desktop.
CoffeeScript prototype
I = () ->
I.prototype.doErrands = () -> 'I did ...'
me = I
persona = new I
console.log me.doErrands?() #undefined
console.log persona.doErrands?() #I did ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment