confi-emacs-actual/snippets/js-mode/forEach-function

8 lines
225 B
Plaintext

# -*- mode: snippet -*-
# name: arr.forEach(function(item) {...})
# key: forefu
# uuid: forefu
# --
`(unless (eq (char-before) ?.) ".")`forEach(function(${1:item}) {
`(doom-snippets-format "%n%s%n")`$0
})`(if (eolp) ";")`