jashkenas--coffeescript/test/test_splices.coffee

5 lines
107 B
CoffeeScript

array: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
array[5..10]: [0, 0, 0]
ok array.join(' ') is '0 1 2 3 4 0 0 0'