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

6 lines
261 B
Plaintext

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