CacheControl / CacheControl/json-rules-engine

Condition for checking param is not falsy?

Aperta
#304 1 commento 2 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
3.1k
Fork
507
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.