Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor JSONCookie function for clarity and compliance
- Update JSDoc to clarify behavior and return types. - Replace str.substr(0, 2) with str.startsWith to check for the prefix 'j:'. - Simplify error handling by removing unused catch parameter. - Maintain functionality for parsing JSON cookies, returning undefined for invalid inputs.
- Loading branch information