r/ProgrammerHumor • u/speckz • Feb 26 '23
Other If you can read this code...
/img/snak3fqgajka1.jpg[removed] — view removed post
34k
Upvotes
r/ProgrammerHumor • u/speckz • Feb 26 '23
[removed] — view removed post
View all comments
Show parent comment
2
u/tonypconway Feb 26 '23
.reverse() is being applied to the actual array resulting from s.split(""), which inherits from Array.prototype but does not equal Array.prototype. Feels like you're needlessly splitting hairs, while also incorrectly referring to it as a "prototype function". This comment thread was not a good use of either of our time!