confi-emacs-actual/snippets/js-mode/indexOf

6 lines
214 B
Plaintext
Raw Normal View History

2022-03-30 01:21:13 +02:00
# -*- mode: snippet -*-
# name: arr.indexOf(elt, fromIndex)
# key: iof
# uuid: iof
# --
`(unless (eq (char-before) ?.) ".")`indexOf(${1:`(or (doom-snippets-text nil t) "elt")`}${2: ${3:fromIndex}})`(if (eolp) ";")`