WebStorm 2017.2 Help

Extract Method


When the Extract Method refactoring is invoked in the JavaScript context, WebStorm analyses the selected block of code and detects variables that are the input for the selected code fragment and the variables that are output for it.

The detected output variable is used as a return value for the extracted function.



To extract a function

    Last modified: 29 November 2017

    See Also