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

@bramus/range

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bramus/range - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

dist/index.js

@@ -1,2 +0,2 @@

var a=(r,e,n=1)=>Array.from({length:(e-r)/n+1},(g,o)=>r+o*n);export{a as range};
var i=(e,n,r=1)=>{if(!Number.isInteger(e))throw new TypeError("start should be an integer");if(!Number.isInteger(n))throw new TypeError("end should be an integer");if(!Number.isInteger(r))throw new TypeError("step should be an integer");if(n<e)throw new RangeError("end should be greater than start");if(r<1)throw new RangeError("step should be a positive integer");return Array.from({length:(n-e)/r+1},(t,o)=>e+o*r)};export{i as range};
//# sourceMappingURL=index.js.map
{
"name": "@bramus/range",
"version": "1.1.0",
"version": "1.1.1",
"description": "Create an array containing a range of elements (cfr. PHP's range)",

@@ -11,2 +11,3 @@ "type": "module",

"prepublish": "npm run build",
"pretest": "npm run build",
"test": "mocha"

@@ -13,0 +14,0 @@ },

Sorry, the diff of this file is not supported yet

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