Skip to content

Commit 186686e

Browse files
author
Zeno Rocha
committed
Add function apply snippet
1 parent dde0cb8 commit 186686e

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,12 @@ ${1:ClassName}.prototype.${2:methodName} = function(${3:arguments}) {
216216
${1:methodName}.call(${2:context}, ${3:arguments})
217217
```
218218
219+
### [apply] function apply
220+
221+
```javascript
222+
${1:methodName}.apply(${2:context}, [${3:arguments}])
223+
```
224+
219225
## Timer
220226
221227
### [si] setInterval

function-apply.sublime-snippet

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<snippet>
2+
<content><![CDATA[
3+
${1:methodName}.apply(${2:context}, [${3:arguments}])
4+
]]></content>
5+
<tabTrigger>apply</tabTrigger>
6+
<scope>source.js</scope>
7+
<description>method.apply()</description>
8+
</snippet>

0 commit comments

Comments
 (0)