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

6 lines
285 B
Plaintext

# -*- mode: snippet -*-
# name: arr.map((item, i, arr) => {...})
# key: map=>
# uuid: map=>
# --
`(unless (eq (char-before) ?.) ".")`map((${1:item}, ${2:i}, ${3:arr}) => `(if (> (doom-snippets-count-lines %) 1) (concat "{ " (doom-snippets-format "%n%s%n") " }") %)`$0)`(if (eolp) ";")`