-
Notifications
You must be signed in to change notification settings - Fork 18
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
base: master
Are you sure you want to change the base?
Accomplished #4
Conversation
There was a problem hiding this 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)=>{ |
There was a problem hiding this comment.
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) => { |
There was a problem hiding this comment.
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++) { |
There was a problem hiding this comment.
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.
No description provided.