DEV Community

[Comment from a deleted post]
Collapse
 
qm3ster profile image
Mihail Malo

If we avoid Unicode, this should probably be fast:

Buffer.from('hello','latin1').reverse().toString('latin1')