4
votes
3answers
132 views

Adding push to array inside the class that is being pushed

I used to mostly do this: class Person constructor : (@parent, @data)-> @index = @parent.length class People constructor : -> people = [] for data in database.people ...