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

just-flatten-it

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

just-flatten-it - npm Package Compare versions

Comparing version 3.2.0 to 4.0.0

2

index.d.ts
type RecursiveList<T> = (T | T[] | RecursiveList<T>)[];
declare function flatten<T>(list: RecursiveList<T>, depth? : number): T[];
export = flatten;
export default flatten;

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

import flatten = require('./index');
import flatten from './index'

@@ -3,0 +3,0 @@ // OK

{
"name": "just-flatten-it",
"version": "3.2.0",
"version": "4.0.0",
"description": "return a flattened array",

@@ -22,2 +22,2 @@ "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