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

array.partial

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array.partial - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

index.js
'use strict'
module.exports = (arr, func) => {
module.exports = function(arr, func) {
const some = arr.filter(func)
return some.length !== 0 && some.length !== arr.length
}
{
"name": "array.partial",
"version": "1.0.3",
"version": "1.0.4",
"description":

@@ -5,0 +5,0 @@ "When you want array.some but not array.every. Useful when you need to determine partially selected states - like partially selecting tree nodes when some but not all child nodes are checked.",

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