Skip to content

Checking DRY, KISS, and YAGNI rules. #7

@ibugithub

Description

@ibugithub

Instead of appending all the elements one by one, I could use forEach to append them by less using less code.

this.todoListContainer.appendChild(tdulLi);
tdulLi.appendChild(tdLeft);
tdLeft.appendChild(tdulLiBox);
tdLeft.appendChild(tdLiContent);
tdulLi.appendChild(tdLiOption);
tdulLiBox.appendChild(tdBoxImg);
tdulLi.appendChild(tdLiOption);
tdLiOption.appendChild(tdOptionImg);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions