1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

redocumenting slices/splices ... issue #833

This commit is contained in:
Jeremy Ashkenas 2010-12-04 12:52:51 -05:00
parent 67c20c0715
commit 75ca0f23ac
8 changed files with 85 additions and 10 deletions

View file

@ -0,0 +1,4 @@
var copy, middle, numbers;
numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
copy = numbers.slice(0, numbers.length);
middle = copy.slice(3, 6 + 1);