JSFiddle - React, Tailwind, and code Playground
CoffeeScript
class FatArrow
message: 'the fat arrow rules'
repeat: =>
return @message
class ThinArrow
message: 'Ha, ha, I steal your function'
steal_function: (func) ->
alert(func.call(@))
fat_arrow = new FatArrow
thin_arrow = new ThinArrow
thin_arrow.steal_function(fat_arrow.repeat)