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

extra-iterable

Package Overview
Dependencies
Maintainers
1
Versions
468
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extra-iterable - npm Package Compare versions

Comparing version 3.0.120 to 3.0.121

4

index.d.ts

@@ -987,3 +987,3 @@ /**

/**
* Move part of iterable within. TODO
* Move part of iterable within.
* [📘](https://github.com/nodef/extra-iterable/wiki/moveWithin)

@@ -994,3 +994,3 @@ * @param x an iterable

* @param I read end index [END]
* @returns TODO
* @returns x[0..j] ⧺ x[i..I] ⧺ x[j..i] ⧺ x[I..]
* */

@@ -997,0 +997,0 @@

@@ -786,7 +786,9 @@ 'use strict';

}
function* moveWithin(x, j = 0, i = 0, I = END) {
function moveWithin(x, j = 0, i = 0, I = END) {
if (j < i)
yield* movePart(x, j, i, I);
return movePart(x, j, i, I);
else if (j > I)
return movePart(x, i, I, j);
else
yield* movePart(x, i, I, j);
return values(x);
}

@@ -793,0 +795,0 @@ function* movePart(x, j, k, l) {

{
"name": "extra-iterable",
"version": "3.0.120",
"version": "3.0.121",
"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

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