Inspectopedia Help

Potentially invalid constructor usage

Reports a usage of a potentially invalid constructor function, for example: a function that is not a constructor after new, using a constructor's prototype or calling a constructor without new. A constructor function is assumed to have an upper case name (optional) or have an explicit JSDoc @constructor tag.

Inspection options

Here you can find the description of settings available for the Potentially invalid constructor usage inspection, and the reference of their default values.

Assume only functions in uppercase are constructors

Default: Selected

Last modified: 12 March 2024