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

8 lines
241 B
Plaintext
Raw Normal View History

2022-03-30 01:21:13 +02:00
# -*- mode: snippet -*-
# name: arr.map(function(item, i, arr) {...})
# key: mapfu
# uuid: mapfu
# --
`(unless (eq (char-before) ?.) ".")`map(function(${1:item}, ${2:i}, ${3:arr}) {
`(doom-snippets-format "%n%s%n")`$0
})`(if (eolp) ";")`