Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 419 Bytes

helper-wrap-function.md

File metadata and controls

30 lines (21 loc) · 419 Bytes
id title sidebar_label
babel-helper-wrap-function
@babel/helper-wrap-function
helper-wrap-function

Example

In

(function () {
}());

Out

_wrapper(function () {
})();

Usage

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

wrapFunction(nodePathOfTheFunction, nodeWhichReferencesToTheWrapper);