Skip to content
This repository was archived by the owner on Jan 26, 2023. It is now read-only.

Commit 1b9ca94

Browse files
add: fno, update:fnn & changes:cl -> clo
1 parent 4fe7fae commit 1b9ca94

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

snippets/nodejs-snippet.cson

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
'body': "const assert = require('assert');"
176176
#consoles shorthand
177177
'console.log':
178-
'prefix':'cl'
178+
'prefix':'clo'
179179
'body':'console.log(${1:});'
180180
'console.info':
181181
'prefix':'ci'
@@ -347,6 +347,13 @@
347347
${3:}
348348
}
349349
'''
350+
'anonymous function without parameter':
351+
'prefix':'fno'
352+
'body':'''
353+
function (${1:}) {
354+
${2:}
355+
}
356+
'''
350357
'named function':
351358
'prefix':'fnn'
352359
'body':'''
@@ -359,7 +366,7 @@
359366
'body':'''
360367
var ${1:name} = function (${2:arg}) {
361368
${3:}
362-
}
369+
};
363370
'''
364371
'immediately invoked function expression':
365372
'prefix':'iife'

0 commit comments

Comments
 (0)