Skip to content

solution#2730

Open
Duster-1 wants to merge 2 commits intomate-academy:masterfrom
Duster-1:develop
Open

solution#2730
Duster-1 wants to merge 2 commits intomate-academy:masterfrom
Duster-1:develop

Conversation

@Duster-1
Copy link

No description provided.

let result = '';

for (let i = 0; i < this.length; i++) {
if (typeof (this[i]) !== 'undefined' && this[i] !== null) {

Choose a reason for hiding this comment

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

Suggested change
if (typeof (this[i]) !== 'undefined' && this[i] !== null) {
if (this[i] !== undefined && this[i] !== null) {

just compare value, not type

@Duster-1 Duster-1 requested a review from TarasHoliuk August 13, 2023 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants