Re: add reverse() method to strings

2018-03-18 Thread Grigory Hatsevich
0;i wrote: > The point of a coding task for a beginner is to practice their problem > solving skills to solve the task. This would remove the challenge and > actively worsen their learning process > > > On Mar 18 2018, at 6:26 pm, Grigory Hatsevich > wrote: > > > M

Re: add reverse() method to strings

2018-03-18 Thread Grigory Hatsevich
of surrogate pairs, as does >>java.lang.StringBuilder.reverse:download.oracle.com/javase/7/docs/api/>>java/lang/StringBuilder.html#reverse() """ On Sat, Mar 17, 2018 at 1:41 PM, Grigory Hatsevich wrote: Hi! I would propose to add reverse() method to strings. Something equival

add reverse() method to strings

2018-03-17 Thread Grigory Hatsevich
Hi! I would propose to add reverse() method to strings. Something equivalent to the following: String.prototype.reverse = function(){ return this.split('').reverse().join('') } It seems natural to have such method. Why not? ___ es-discuss mailing