Sublime Text Bluebird snippets
Save them to your Packages/User
folder.
then
:
then(function($1) {
$2
})$3
new
:
new Bluebird(function(resolve, reject) {
});
catch
:
catch(function(err) {
$2
})$3
each
:
each(function($1) {
$2
})$3
map
:
map(function($1) {
$2
})$3
tap console
:
tap(console.log.bind(console, $1))