Normalize any legal hook return value to a single "did it reject?" boolean.
Hooks in jssm may return any of the following to indicate success:
true, undefined, or a complex result whose pass field is true.
They may return any of the following to indicate rejection:
false, or a complex result whose pass field is false. This helper
collapses all of those shapes into one boolean so callers don't have to
re-implement the matrix.
Normalize any legal hook return value to a single "did it reject?" boolean.
Hooks in jssm may return any of the following to indicate success:
true,undefined, or a complex result whosepassfield istrue. They may return any of the following to indicate rejection:false, or a complex result whosepassfield isfalse. This helper collapses all of those shapes into one boolean so callers don't have to re-implement the matrix.