Movatterモバイル変換


[0]ホーム

URL:


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

[BER-FT-032023] Gunnar Miklis#3687

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

gunnar-miklis
Copy link

Done: Iteration#1 to#7

Copy link

@arekiuarekiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Very elegant solutions!

} else {
sum += typeof entry === 'string' ? entry.length : entry
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Super good solution! The only thing I think it would be even better is to write the statement with the types we know will be supported, first (in if). And all the rest going to else.
But anyway, in this case, the array to test is already there and the solution works perfectly

gunnar-miklis reacted with heart emoji
@stale
Copy link

stalebot commentedMay 31, 2023

This pull request has been automatically marked as stale because it didn't have any recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stalestalebot added the stale labelMay 31, 2023
@stale
Copy link

stalebot commentedJun 7, 2023

This pull request is closed. Thank you.

@stalestalebot closed thisJun 7, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@arekiuarekiuarekiu left review comments

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@gunnar-miklis@arekiu

[8]ページ先頭

©2009-2025 Movatter.jp