mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-19 03:44:23 -05:00
implemented for-from-to and removed dotted ranges
This commit is contained in:
@@ -14,10 +14,6 @@ ok value is 1
|
||||
value = 0.0 + -.25 - -.75 + 0.0
|
||||
ok value is 0.5
|
||||
|
||||
# Decimals don't interfere with ranges.
|
||||
ok [0..10].join(' ') is '0 1 2 3 4 5 6 7 8 9 10'
|
||||
ok [0...10].join(' ') is '0 1 2 3 4 5 6 7 8 9'
|
||||
|
||||
|
||||
# Can call methods directly on numbers.
|
||||
4.valueOf() is 4
|
||||
|
||||
Reference in New Issue
Block a user