JavaScript Style Guide
javascript
styleguide
eslint
es6
style-linter
linting
style-guide
es2015
naming-conventions
arrow-functions
es2017
es2016
tc39
es2018
-
Updated
Sep 9, 2021 - JavaScript
Please describe what the rule should do:
Starting V8 v.9.3,
Object.prototype.hasOwnProperty.call
can be replaced with an alias/syntax sugarObject.hasOwn
, which is much more read-friendly. Further information: https://v8.dev/features/object-has-ownWhat new ECMAScript feature does this rule relate to?
Promoting using of an alias/syntax sugar
Object.hasOwn
instead of `Object.prot