Search include/exclude null fix
Some checks failed
Build / Build NPM Project (push) Successful in 45s
Build / Publish Documentation (push) Failing after 5s
Build / Tag Version (push) Successful in 9s

This commit is contained in:
2025-07-21 18:33:15 -04:00
parent 7119390681
commit 5efb045f22
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@ztimson/utils",
"version": "0.26.9",
"version": "0.26.10",
"description": "Utility library",
"author": "Zak Timson",
"license": "MIT",

View File

@ -39,8 +39,8 @@ export function logicTest(target: object, condition: string): boolean {
case '=':
case '==': return a == b;
case '!=': return a != b;
case '+': return a.includes(b);
case '-': return !a.includes(b);
case '+': return typeof a?.includes != 'undefined' ? a.includes(b) : a == b;
case '-': return typeof a?.includes != 'undefined' ? !a.includes(b) : a != b;
case '>': return a > b;
case '>=': return a >= b;
case '<': return a < b;