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

6 lines
267 B
Plaintext

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