Returns the primitive type reported by Object.prototype.toString / Symbol.toStringTag.
Performance: Short-circuits all primitives via typeof in ~0.5ns with zero allocations. Safely wrapped in a try-catch to guard against:
{ get [Symbol.toStringTag]() { throw ... } }
Proxy.revocable()
Optional
Returns the primitive type reported by Object.prototype.toString / Symbol.toStringTag.
Performance: Short-circuits all primitives via typeof in ~0.5ns with zero allocations. Safely wrapped in a try-catch to guard against:
{ get [Symbol.toStringTag]() { throw ... } })Proxy.revocable()) which throw TypeError on property/tag access