@bramus/range
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7987
111