Skip to content

Commit 8d8463c

Browse files
committed
Add docs for 'iife' #3
1 parent 61de0e8 commit 8d8463c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,14 @@ ${1:ClassName}.prototype.${2:methodName} = function(${3:arguments}) {
195195
}
196196
```
197197
198+
### [iffe] immediately-invoked function expression
199+
200+
```javascript
201+
(function (window, document, undefined) {
202+
${1:// body...}
203+
})(window, document);
204+
```
205+
198206
## Timer
199207
200208
### [si] setInterval

0 commit comments

Comments
 (0)