js--function-heading-1-re

js--function-heading-1-re is a variable defined in `js.el'.
Its value is

"^\\s-*function\\s-+\\([a-zA-Z_$]\\(?:\\s_\\|\\sw\\)*\\)"

  • This variable may be risky if used as a file-local variable.

Documentation:
Regexp matching the start of a JavaScript function header.
Match group 1 is the name of the function.