Type guard to check if a value has been stamped with a specific brand Symbol. Cross-realm safe and safe against primitives / nullish values.
The value to check
The brand Symbol
True if val is an object or function stamped with the brand
Type guard to check if a value has been stamped with a specific brand Symbol. Cross-realm safe and safe against primitives / nullish values.