From 26105034da4fcce7ac883c899d781f016559310d Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 8 Nov 2018 00:38:48 +0800 Subject: switch to vuepress --- node_modules/@babel/helper-wrap-function/README.md | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 node_modules/@babel/helper-wrap-function/README.md (limited to 'node_modules/@babel/helper-wrap-function/README.md') diff --git a/node_modules/@babel/helper-wrap-function/README.md b/node_modules/@babel/helper-wrap-function/README.md new file mode 100644 index 00000000..25b7eaa2 --- /dev/null +++ b/node_modules/@babel/helper-wrap-function/README.md @@ -0,0 +1,27 @@ +# @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** + +```js +(function () { +}()); +``` + +**Out** + +```js +_wrapper(function () { +})(); +``` + +## Usage + +```js +import wrapFunction from "@babel/helper-wrap-function"; + +wrapFunction(nodePathOfTheFunction, nodeWhichReferencesToTheWrapper); +``` -- cgit v1.2.3