Skip to content

Commit faeab73

Browse files
authored
FIX: Object.prototype builtins should not be used directly (HarshCasper#1277)
It is preferable to call certain Object.prototype methods through Object on object instances instead of using the builtins directly.
1 parent 85b24c8 commit faeab73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JavaScript/Twitter_Unfollowers/Twitter_Unfollowers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const init = async () => {
7373
dbData = (dbData === "" || dbData.length == 0) ? "{}" : dbData;
7474
dbData = JSON.parse(dbData);
7575

76-
if (dbData.hasOwnProperty(user.name)) {
76+
if (Object.prototype.hasOwnProperty.call(dbData, "user.name")) {
7777
// display basic info
7878
displayUser(user);
7979

0 commit comments

Comments
 (0)