Create a type predicate function that narrows the result of fn down to its simple (non-branded) type.
fn
const isSimpleNumber = simple(isInt32); // narrows from branded `Int32` down to plain `number`isSimpleNumber(5); // trueisSimpleNumber('5'); // false Copy
const isSimpleNumber = simple(isInt32); // narrows from branded `Int32` down to plain `number`isSimpleNumber(5); // trueisSimpleNumber('5'); // false
Create a type predicate function that narrows the result of
fndown to its simple (non-branded) type.