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

just-compact

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

just-compact - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

4

index.js

@@ -7,3 +7,3 @@ module.exports = compact;

compact([]); // []
compact({}); // undefined
compact({}); // throws
*/

@@ -13,3 +13,3 @@

if (!Array.isArray(arr)) {
return undefined;
throw new Error('expected an array');
}

@@ -16,0 +16,0 @@ var result = [];

{
"name": "just-compact",
"version": "1.0.0",
"version": "2.0.0",
"description": "returns a copy of an array with falsey values removed",

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

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

@@ -19,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