dh-snippets README
Digital Horizon Snippets
Trigger |
Body |
Description |
clg |
"console.log('${1:name} => '${2:object})" |
console.log(object) |
drq |
const { ${1:param} } = require('${2:package-name}') |
destructure required package require('') |
dob |
const { ${1:param} } = ${2:object} |
destructing object |
prom |
new Promise((resolve, reject) => {$0}) |
creates a new Promise |
anfn |
(${1:params}) => {$0} |
creates an anonymous function |
nfn |
const ${1:name} = (${2:params}) => {$0} |
creates a named function |
| |