CacheControl / CacheControl/json-rules-engine

Condition for checking param is not falsy?

Open
#304 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.1k
Forks
507
PR merge metrics
No merged PRs in 30d

Description

I need to ensure a parameter, if provided, does not contain a falsy value (`''`, `0`, `false`, `null`, `undefined`, etc.). As far as I can tell, the "notEquals" operator would be unwieldy because it uses `!==` so I'd have to check each possibility separately. Is that the only built-in way? Must this be a custom operator?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.