express
express copied to clipboard
refactor: modernize View#lookup
- Replace
varloop withfor...offor clarity and readability - Use
constinstead ofvarto prevent accidental reassignment - Introduce explicit
foundvariable to avoid shadowing Node'spathmodule - Add JSDoc to clarify input and return type