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

6 lines
261 B
Plaintext
Raw Normal View History

2022-03-30 01:21:13 +02:00
# -*- mode: snippet -*-
# name: arr.filter(item => {...})
# key: fil=>
# uuid: fil=>
# --
`(unless (eq (char-before) ?.) ".")`filter(${1:item} => `(if (> (doom-snippets-count-lines %) 1) (concat "{ " (doom-snippets-format "%n%s%n") " }") %)`$0)`(if (eolp) ";")`