diff --git a/README.md b/README.md index 1455442..94af0a0 100644 --- a/README.md +++ b/README.md @@ -161,6 +161,7 @@ be converted to booleans. | startsWith | \_.toString(x).startsWith() | | | endsWith | \_.toString(x).endsWith() | | | contains | \_.toString(x).includes() | | +| not_contains | !\_.toString(x).includes() | | # Array Syntax diff --git a/index.js b/index.js index 950defe..999127a 100644 --- a/index.js +++ b/index.js @@ -83,6 +83,9 @@ function checkConditions(settings, reference) { case "contains": result = toString(value).includes(targetValue); break; + case "not_contains": + result = !toString(value).includes(targetValue); + break; case "present": result = !!value; break;