nv-facutil-notandor
Advanced tools
Comparing version 1.0.3 to 1.0.5
@@ -1,1 +0,1 @@ | ||
const _0=(..._)=>_.every(_=>_),_1=(..._)=>_.every(_=>!_),_2=(_,t,...e)=>{let r=0;for(var n of e)if(_(n)&&(r+=1),r===t)return!0;return!1},_3=(_,...t)=>_2(_=>_,_,...t),_4=(..._)=>_3(1,..._),_5=(_,...t)=>_2(_=>!_,_,...t),_7=(_,t,...e)=>{let r=0;for(var n of e)if(_(n)&&(r+=1),r>t)return!1;return r===t},_8=(_,t,...e)=>{for(var r of t)if(!_(e[r]))return!1;return!0},_9=(_,t,r,...n)=>{if(_8(_,r,...n)){let e=new Set(r);return t(...n.filter((_,t)=>!e.has(t)))}return!1},_10=(_,t,...e)=>{let r=0;for(var n of e){n=_(n);if(n&&(r+=1,r>t))return!1}return!0},_11=(_,t,e,...r)=>{let n=0;for(var o of r){o=_(o);if(o&&(n+=1,n>=e))return!1}return n>=t},_12=(t,_,...e)=>{let r=new Set(_);for(let _=0;_<e.length;_++){var n=t(e[_]);if(!r.has(_)&&n)return!1}return!0};module.exports={identity:_=>_,not:_=>!_,and:_0,all:_0,all_not:_1,at_least_some:_3,or:_4,any:_4,at_least_some_not:_5,any_not:(..._)=>_5(1,..._),must_some:(_,...t)=>_7(_=>_,_,...t),must_some_not:(_,...t)=>_7(_=>!_,_,...t),one:(..._)=>_7(_=>_,1,..._),one_not:(..._)=>_7(_=>!_,1,..._),at_least_certain:(_,...t)=>_8(_=>_,_,...t),at_least_certain_not:(_,...t)=>_8(_=>!_,_,...t),must_certain:(_,...t)=>_9(_=>_,_1,_,...t),must_certain_not:(_,...t)=>_9(_=>!_,_0,_,...t),at_most_some:(_,...t)=>_10(_=>_,_,...t),at_most_some_not:(_,...t)=>_10(_=>!_,_,...t),between:(_,t,...e)=>_11(_=>_,_,t,...e),between_not:(_,t,...e)=>_11(_=>!_,_,t,...e),at_most_certain:(_,...t)=>_12(_=>_,_12,...t),at_most_certain_not:(_,...t)=>_12(_=>!_,_12,...t)}; | ||
const _0=(..._)=>_.every(_=>_),_1=(..._)=>_.every(_=>!_),_2=(_,t,...e)=>{let r=0;for(var n of e)if(_(n)&&(r+=1),r===t)return!0;return!1},_3=(_,...t)=>_2(_=>_,_,...t),_4=(..._)=>_3(1,..._),_5=(_,...t)=>_2(_=>!_,_,...t),_7=(_,t,...e)=>{let r=0;for(var n of e)if(_(n)&&(r+=1),r>t)return!1;return r===t},_8=(_,t,...e)=>{for(var r of t)if(!_(e[r]))return!1;return!0},_9=(_,t,r,...n)=>{if(_8(_,r,...n)){let e=new Set(r);return t(...n.filter((_,t)=>!e.has(t)))}return!1},_10=(_,t,...e)=>{let r=0;for(var n of e){n=_(n);if(n&&(r+=1,r>t))return!1}return!0},_11=(_,t,e,...r)=>{let n=0;for(var o of r){o=_(o);if(o&&(n+=1,n>=e))return!1}return n>=t},_12=(t,_,...e)=>{let r=new Set(_);for(let _=0;_<e.length;_++){var n=t(e[_]);if(!r.has(_)&&n)return!1}return!0};module.exports={identity:_=>_,not:_=>!_,and:_0,all:_0,all_not:_1,at_least_some:_3,or:_4,any:_4,at_least_some_not:_5,any_not:(..._)=>_5(1,..._),must_some:(_,...t)=>_7(_=>_,_,...t),must_some_not:(_,...t)=>_7(_=>!_,_,...t),one:(..._)=>_7(_=>_,1,..._),one_not:(..._)=>_7(_=>!_,1,..._),at_least_certain:(_,...t)=>_8(_=>_,_,...t),at_least_certain_not:(_,...t)=>_8(_=>!_,_,...t),must_certain:(_,...t)=>_9(_=>_,_1,_,...t),must_certain_not:(_,...t)=>_9(_=>!_,_0,_,...t),at_most_some:(_,...t)=>_10(_=>_,_,...t),at_most_some_not:(_,...t)=>_10(_=>!_,_,...t),some_between:(_,t,...e)=>_11(_=>_,_,t,...e),some_not_between:(_,t,...e)=>_11(_=>!_,_,t,...e),at_most_certain:(_,...t)=>_12(_=>_,_12,...t),at_most_certain_not:(_,...t)=>_12(_=>!_,_12,...t)}; |
{ | ||
"name": "nv-facutil-notandor", | ||
"version": "1.0.3", | ||
"version": "1.0.5", | ||
"description": "simple and,or,not to void too many || and &&", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -150,8 +150,8 @@ nv-facutil-notandor | ||
(max_count,...params)=>Boolean | ||
between | ||
------- | ||
some\_between | ||
------------- | ||
(ge,lt,...params) => Boolean | ||
between\_not | ||
------------ | ||
some\_not\_between | ||
------------------ | ||
(ge,lt,...params) => Boolean | ||
@@ -158,0 +158,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5532