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.100 to 3.0.101

2

index.d.ts

@@ -1228,3 +1228,3 @@ /**

* @param fm map function (v, i, x)
* @returns TODO
* @returns v₀, v₁, ... | vᵢ ∈ x; vᵢ ≠ vⱼ ∀ i, j
* */

@@ -1231,0 +1231,0 @@

@@ -1133,8 +1133,8 @@ 'use strict';

var fm = fm || IDENTITY;
var s = new Set(), i = -1;
var x1 = new Set(), i = -1;
for (var v of x) {
var v1 = fm(v, ++i, x);
if (s.has(v1))
if (x1.has(v1))
continue;
s.add(v1);
x1.add(v1);
yield v;

@@ -1146,9 +1146,9 @@ }

var fm = fm || IDENTITY;
var s = [], i = -1;
x: for (var v of x) {
var x1 = [], i = -1;
NEXTX: for (var v of x) {
var v1 = fm(v, ++i, x);
for (var u1 of s)
for (var u1 of x1)
if (fc(u1, v1) === 0)
continue x;
s.push(v1);
continue NEXTX;
x1.push(v1);
yield v;

@@ -1155,0 +1155,0 @@ }

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