mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 11:31:20 -05:00
Added the ability to put as many splats in a function call as one wants. Also optimized the assembly into static arrays. Adjusted tests accordingly.
This commit is contained in:
@@ -34,6 +34,13 @@ ok silver is "Michael Phelps"
|
||||
ok bronze is "Liu Xiang"
|
||||
ok the_field.length is 8
|
||||
|
||||
contenders.reverse()
|
||||
medalists contenders[0...2]..., "Mighty Mouse", contenders[2...contenders.length]...
|
||||
|
||||
ok gold is "Usain Bolt"
|
||||
ok silver is "Asafa Powell"
|
||||
ok bronze is "Mighty Mouse"
|
||||
ok the_field.length is 8
|
||||
|
||||
obj: {
|
||||
name: 'bob'
|
||||
|
||||
Reference in New Issue
Block a user