bloody-collections
Advanced tools
Comparing version 0.3.1 to 0.4.0
@@ -5,3 +5,3 @@ { | ||
"issues" : "https://github.com/bloodyowl/collections/issues", | ||
"version" : "0.3.1", | ||
"version" : "0.4.0", | ||
"scripts" : { | ||
@@ -8,0 +8,0 @@ "test" : "tape test/*.js" |
@@ -166,2 +166,14 @@ # collections | ||
clone({foo:"bar", bar:[1,2]}, true) // {foo:"bar", bar:[1,2]} | ||
``` | ||
``` | ||
### `range([start=0,] end[, step=1]) -> array` | ||
Creates an array filled with values from `start` to `end`, separated with `step`. | ||
``` | ||
range(0) // [] | ||
range(5) // [0,1,2,3,4] | ||
range(5, 9) // [5,6,7,8] | ||
range(9, 5, -1) // [9,8,7,6] | ||
range(0, 20, 5) // [0,5,10,15] | ||
``` |
28479
42
828
179