// WHY NOT THIS?startOfLine(enable=true){this._prefixes=(enable&&'^')||''returnthis.add()}// OR EVEN THIS?endOfLine(enable=true){return(this._suffixes=(enable&&'$')||'',this.add.bind(this))()// ^ look mom, no space after `return` ^// |// note the artisanal external position of call parens |}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Discussion on: What do you think about the ternary operator?
Replies for: I agree. I've seen it used in some perfectly legitimate ways such as in JSVerbalExpressions. startOfLine(enable = true) { this._pref...
For further actions, you may consider blocking this person and/or reporting abuse