DEV Community

[Comment from a deleted post]
Collapse
 
midtic0404 profile image
midtic0404

How to use .reduce() for javascript arrays and if sort() returns a new array or sort in place.