Skip to content

Commit

Permalink
tools: use Object.hasOwn() in alljson.mjs
Browse files Browse the repository at this point in the history
Replace hasOwnProperty() with Object.hasOwn().

PR-URL: #41306
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Trott authored and targos committed Jan 14, 2022
1 parent 314102b commit 58da5d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/doc/alljson.mjs
Expand Up @@ -40,7 +40,7 @@ for (const link of toc.match(/<a.*?>/g)) {
);

for (const property in data) {
if (results.hasOwnProperty(property)) {
if (Object.hasOwn(results, property)) {
data[property].forEach((mod) => {
mod.source = data.source;
});
Expand Down

0 comments on commit 58da5d9

Please sign in to comment.