swap-reverse
A very fast algorithm for reversing strings and arrays.
More than 2 times faster compared to the native javascript Array.prototype.reverse().
- tiny ( 394 bytes )
- accepts strings and arrays
- no dependencies
- for modules and amd loaders
- leaves Array.prototype.reverse untouched
___
usage:
var swapRev= ; console;// Hello World! console;// [ 1, 2, 3 ]