DevPath

Fix a loose-equality bug

Foundation · debugging · 15 min · runtime js-node

Brief

A filter uses == and treats 0, the empty string and null as equal. Explain the coercion and rewrite the check with explicit types so only a genuine null/undefined passes.

3 progressive hints are available in the editor.

Public checks

  • explains coercion — expected: mentions type coercion with ==