Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accomplished #4

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

arepaFlipper
Copy link

No description provided.

Copy link

@hyfi06 hyfi06 left a comment

Choose a reason for hiding this comment

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

Some coments

const filters = [];
const days = [7,28,90,365];

const objGen = (label,startAt,endAt)=>{
Copy link

Choose a reason for hiding this comment

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

Puedes hacer una clase

}
}

const filterObj = (label, date, subtract) => {
Copy link

Choose a reason for hiding this comment

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

Usa nombres más descriptivos a la función que desempeña


days.forEach(filtersByAmountDays);

for (let i = 1; i <= 3; i++) {
Copy link

Choose a reason for hiding this comment

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

Usas funciones y de momento cambias ciclos. Esto puede ser confuso para alguien que lea tu código.

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.

2 participants