-
-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Please describe what the rule should do:
Disallow Object.hasOwn
method.
This method will be added in ES2022.
https://github.com/tc39/proposal-accessible-object-hasownproperty
Provide 2-3 code examples that this rule will warn about:
if (Object.hasOwn(object, "foo")) {
// ...
}
Metadata
Metadata
Assignees
Labels
No labels