Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 243cae4

Browse files
No need for the if statement
1 parent 5187bb0 commit 243cae4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎demo/app.js‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,8 @@ window.onload = function () {
5050

5151
console.log(`%cThe LX includes...%c`, bold, normal);
5252
for (let property in LX) {
53-
if (LX.hasOwnProperty(property)) {
54-
console.log(`— %c${property}%c: ${LX[property]}`,
55-
bold, normal);
56-
}
53+
console.log(`— %c${property}%c: ${LX[property]}`,
54+
bold, normal);
5755
}
5856

5957
console.log(`\n`);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /