You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is more to do with the way functions are written for relational operators. All the relational operator functions use array.reduce to return a value. If the expected condition is met, then the second element is returned, else false is returned. So in case of true statements, the value of the last element is the console output.Just returning true from the reduce function means loosing out on the second value, without which comparison could not be made.
The text was updated successfully, but these errors were encountered:
This is more to do with the way functions are written for relational operators. All the relational operator functions use array.reduce to return a value. If the expected condition is met, then the second element is returned, else false is returned. So in case of true statements, the value of the last element is the console output.Just returning true from the reduce function means loosing out on the second value, without which comparison could not be made.
The text was updated successfully, but these errors were encountered: