Probably it's a noobisch question. Currently I'm fiddling with Framer.js. I've got a CoffeeScript question;
types = ["orange", "apple", "banana", "grapefruit", "pear"]
for i in types
li = new TextLayer
text: types
y: li * 60
li.parent = dropdownList
print "list-item-" + "#{i}", i
So I've got an Array and I would like to declare an dynamic variable to an object instance. Code above just generates 5 li layers (which is Framer specific > I don't want non-self-explaining layer names within Editor)
So within the for-loop;
var item-orange = new Layer...
var item-apple = new Layer... and so on
How could I accomplish this with CoffeeScript?