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

just-permutations

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

just-permutations - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

3

index.d.ts

@@ -1,2 +0,1 @@

export default function permutations<First, Rest>(arr: [First, ...Rest[]]): (First | Rest)[][];
export default function permutations<T>(arr: T[]): T[]; // for empty arrays
export default function permutations<T>(arr: T[]): T[][]; // for empty arrays

@@ -10,3 +10,3 @@ import permutations from './index';

const numbers: number[] = []
let test5: number[] = permutations(numbers)
let test5: number[][] = permutations(numbers)

@@ -29,2 +29,2 @@ // Not OK

// @ts-expect-error
permutations([], []);
permutations([], []);
{
"name": "just-permutations",
"version": "1.0.1",
"version": "1.1.0",
"description": "Returns all permutations of the length N of the elements of the given Array",

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

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