Here are my tips on array methods:
push
sort
splice
includes
flat
reduce
That's very helpful Massimo.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Here are my tips on array methods:
push
andsort
are acceptable but be extra careful;splice
is also very slow, and if you need to use it, you're using a mutable approach and that's a bad practice;includes
is a very expressive method;flat
is great;reduce
has received some backlash lately... and it's probably justified;That's very helpful Massimo.