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

6 lines
267 B
Plaintext
Raw Permalink Normal View History

2022-03-30 01:21:13 +02:00
# -*- 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) ";")`