Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bloody-collections

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bloody-collections - npm Package Compare versions

Comparing version 0.3.1 to 0.4.0

lib/range.js

2

package.json

@@ -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]
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc