cookie-parser
cookie-parser copied to clipboard
Refactor signedCookies function for improved readability
- Replaced Object.keys() with Object.entries() for cleaner iteration over key-value pairs.
- Used destructuring in the loop to enhance code clarity.
- Maintained functionality of decoding signed cookies while removing them from the original object.
Same as https://github.com/expressjs/cookie-parser/pull/119#issuecomment-2451729449