mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-19 03:44:23 -05:00
caught a close call bug with object comprehensions and not specifying the value
This commit is contained in:
@@ -5,7 +5,7 @@ print(results.join(',') is '2,18')
|
||||
|
||||
|
||||
obj: {one: 1, two: 2, three: 3}
|
||||
names: key + '!' for key, value ino obj
|
||||
names: key + '!' for key ino obj
|
||||
odds: key + '!' for key, value ino obj when value % 2 isnt 0
|
||||
|
||||
print(names.join(' ') is "one! two! three!")
|
||||
|
||||
Reference in New Issue
Block a user