Is the following function ambiguous in javascript?
equals(o) {
return (this.x == o.x)
&& (this.y == o.y);
}
That is, because it's spread across two lines, do I need to move the &&
to the line above? What are the rules for when I need to be concerned about spreading a statement across multiple lines?