CacheControl / CacheControl/json-rules-engine
Condition for checking param is not falsy?
未關閉
- 主要語言
- JavaScript
- 星號
- 3.1k
- 分支
- 507
- PR 合併指標
- 30 天內沒有已合併 PR
描述
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?
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
首先檢視 rules engine 現有的條件運算子,尤其是 notEquals 運算子和 custom-operator 入口點。判斷檢查任何 falsy 參數值應該是內建條件還是自訂運算子,然後新增測試涵蓋範圍與文件,展示對 '', 0, false、null 和 undefined 的預期行為。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript
- 領域
- backend
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100