confi-emacs-actual/snippets/js-mode/map-function
2022-03-29 19:21:13 -04:00

8 lines
241 B
Plaintext

# -*- 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) ";")`