Skip to content

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