« first day (4461 days earlier)      last day (709 days later) » 

09:46
Hi all, I feel dumb to ask this but... in this scenario:
export const arrSort = (arr) => {
    arr.sort((a, b) => parseFloat(a.value) - parseFloat(b.value));
}
instead of .value, how could I add a variable?
0_0
10:10
Hello
Do you have experience with date-fns ?
I am trying to use startOfYear and endOfYear
based on current date - new Date()
and it's ok, but how to format date to YYYY-MM-DD
when the response from startOfYear is very very long date
 
4 hours later…
14:40
@NineCattoRules What do you mean?
a[someVariable]?
 
3 hours later…
17:47
@VLAZ Damn! Exactly, thanks!
 
2 hours later…
19:28
@VLAZ from the terminal within vscode

« first day (4461 days earlier)      last day (709 days later) »