DEV Community

Discussion on: Pure vs Impure Functions

Collapse
 
brad_beggs profile image
Brad Beggs

.sort() is also impure, sorting the input in-place.

Collapse
 
sanspanic profile image
Sandra Spanik

Thanks for the suggestion, I've updated the list!