Skip to main content

@babel/helper-wrap-function

Example

In

JavaScript
(function () {
}());

Out

JavaScript
_wrapper(function () {
})();

Usage

JavaScript
import wrapFunction from "@babel/helper-wrap-function";

wrapFunction(nodePathOfTheFunction, nodeWhichReferencesToTheWrapper);