extra-iterable
Advanced tools
Comparing version 3.0.112 to 3.0.113
@@ -962,9 +962,9 @@ 'use strict'; | ||
} | ||
function* rotate(x, n = 0) { | ||
function rotate(x, n = 0) { | ||
if (n === 0) | ||
yield* x; | ||
return values(x); | ||
else if (n > 0) | ||
yield* rotateLeft(x, n); | ||
return rotateLeft(x, n); | ||
else | ||
yield* rotateRight(x, -n); | ||
return rotateRight(x, -n); | ||
} | ||
@@ -971,0 +971,0 @@ function* rotateLeft(x, n) { |
{ | ||
"name": "extra-iterable", | ||
"version": "3.0.112", | ||
"version": "3.0.113", | ||
"description": "An iterable is a sequence of values.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
123914