New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

iteragain

Package Overview
Dependencies
Maintainers
1
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iteragain - npm Package Compare versions

Comparing version 3.12.0 to 3.12.1

2

internal/ExtendedIterator.js

@@ -485,3 +485,3 @@ "use strict";

/** Collects all values from this iterator, then sorts them. */
sort(comparator) {
sort(comparator = (a, b) => a < b ? -1 : a > b ? 1 : 0) {
this.iterator = (0, toIterator_1.default)(this.toArray().sort(comparator));

@@ -488,0 +488,0 @@ return this;

{
"name": "iteragain",
"version": "3.12.0",
"version": "3.12.1",
"description": "Javascript Iterable/Iterator/Generator-function utilities.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -6,3 +6,3 @@ "use strict";

/** Collects all values from the input iterator, then sorts them. */
function sort(arg, comparator) {
function sort(arg, comparator = (a, b) => a < b ? -1 : a > b ? 1 : 0) {
return (0, toArray_1.default)(arg).sort(comparator)[Symbol.iterator]();

@@ -9,0 +9,0 @@ }

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