Ad
  • Custom User Avatar

    Love the use of the negative offset in the slice - my solution is exactly the same as yours except that I used slice(0, r.length - 1). Because of that, it's far less elegant than yours. Kudos.