array.partial
Advanced tools
Comparing version 1.0.3 to 1.0.4
'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.", |
4534