I am trying to figure out why this javascript function returns 0
when this.position.startOffset
value is 0
but not when the value is a number other than 0
.
ready: function() {
return (this.position.startOffset
&& this.position.endOffset
&& this.position.representation.trim().length >= 0
&& this.text.id
&& this.user.id
&& this.concept);
}