Method Shorthand for JSDoc Preservation When factory functions have helper functions that are only used by returned methods, move them INTO the return object using method shorthand. This ensures JSDoc comments are properly passed through to consumers. Related Skills : See for the four-zone factory anatomy and the decision rule. The Problem You write a factory function with a well-documented helper: When you hover over in your IDE, you see... nothing. The JSDoc is lost. The Solution Move the helper INTO the return object using method shorthand: Now hovering over shows the full JSDoc. This matt…