JavaScript Professional — Medium
Key points
- The `has` trap is specifically triggered by the `in` operator.
- It does not intercept property access via dot notation.
- Object.hasOwnProperty() calls and Array.includes() are not intercepted by the `has` trap.
Ready to go further?
Related questions
