123
reputation
1

Kuntau

MyObject = checkCondition: (num) -> return true if num is 5

  getSum: (num) ->
    total = 0
    total += i for i in [1..num] when @checkCondition i
    total
  • BBB
  • Member for 3 years, 2 months
  • 0 profile views
  • Last seen May 14 at 17:55