Library API
    Preparing search index...

    Function isBranded

    • Type guard to check if a value has been stamped with a specific brand Symbol. Cross-realm safe and safe against primitives / nullish values.

      Type Parameters

      • T = any

      Parameters

      • val: unknown

        The value to check

      • brand: symbol

        The brand Symbol

      Returns val is T

      True if val is an object or function stamped with the brand