According to the function's description the return value should be a boolean, but the function's signature says otherwise and it actually behaves that way (returns either a or b). This can become an issue if you expected the result to be a bool.
You might want to read #1218, #1335, #1971 and #2361 , these issues explain why and behaviors inconsistent with its description.
Most helpful comment
You might want to read #1218, #1335, #1971 and #2361 , these issues explain why
andbehaviors inconsistent with its description.