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 1.1.23 to 2.0.0

3

index.js

@@ -9,2 +9,5 @@ module.exports = flatten;

function flatten(arr) {
if (!Array.isArray(arr)) {
throw new Error('expected an array');
}
var result = [];

@@ -11,0 +14,0 @@ var len = arr.length;

9

package.json
{
"name": "just-flatten-it",
"version": "1.1.23",
"version": "2.0.0",
"description": "return a flattened array",

@@ -10,8 +10,3 @@ "main": "index.js",

"repository": "https://github.com/angus-c/just",
"keywords": [
"array",
"flatten",
"no-dependencies",
"just"
],
"keywords": ["array", "flatten", "no-dependencies", "just"],
"author": "Angus Croll",

@@ -18,0 +13,0 @@ "license": "MIT",

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