JS Built-ins
SymbolhasInstancebeginner

Symbol.hasInstance β€” always a symbol

πŸ“– Usage Example
typeof Symbol.hasInstance          // β†’ 'symbol'
Symbol.hasInstance === Symbol.hasInstance  // β†’ true

Symbol.hasInstance is always type 'symbol' with a stable reference.

Symbol.hasInstance Type Confirmation

Symbol.hasInstance is always a symbol primitive.

Challenge: Confirm the type.

πŸ’‘ Hints (1)
  • β€’ Well-known symbols are always of type "symbol".