🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
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

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.",