babel-helper-wrap-function
v7.0.0-alpha.16
Published
Helper to wrap functions inside a function call.
Readme
babel-helper-wrap-function
This helper wraps a function within a call expression. It works with any function: statements, expressions and methods; both named and anonymous.
Example
In
(function () {
}());Out
_wrapper(function () {
})();Usage
import wrapFunction from "babel-helper-wrap-function";
wrapFunction(nodePathOfTheFunction, nodeWhichReferencesToTheWrapper);