mirror of
https://github.com/wassname/talk.git
synced 2026-08-20 12:50:41 +08:00
fix: Added linting rule to disable use of object prototypes (#2939)
This commit is contained in:
@@ -45,7 +45,7 @@ function reduce({
|
||||
|
||||
if (isObject(obj)) {
|
||||
for (const property in obj) {
|
||||
if (!obj.hasOwnProperty(property)) {
|
||||
if (!Object.prototype.hasOwnProperty.call(obj, property)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user