Is there a convention for naming mutable and predicate functions in Javascript?
For example, in Ruby, Lisp, etc., functions that mutate their contents, like gsub!, usually have an exclamation point as a convention to denote that the function is dangerous.
Or, if the function returns a boolean value, like even?, the function will have a question mark.
Unfortunately, you can't use special characters like ? or ! in function names in Javascript, so what conventions do Javascript programmers use to denote these special types?
find_by!in activerecord), and there's mutation functions that have no exclamation mark(e.g.Set#add).