You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
408 B
Plaintext

snippet f "function" !
function ${1:function_name}(${2:argument}) {
${VISUAL}$0
}
endsnippet
snippet scf "self calling function" !
(function (${1:argument}) {
${VISUAL}$0
}(${2:$1}));
endsnippet
snippet log "console.log"
console.log(${1:"${2:value}"});
endsnippet
snippet strict "use strict"
'use strict';
endsnippet
snippet timeout "setTimeout" !
setTimeout(function () {
${1://code}
}, 0);
endsnippet