- reverse
Reverse array
examples/arrays/reverse.js
"use strict"; var names = ['Foo', 'Bar', 'Morse']; console.log(names); // [ 'Foo', 'Bar', 'Morse' ] names.reverse(); console.log(names); // [ 'Morse', 'Bar', 'Foo' ]
"use strict"; var names = ['Foo', 'Bar', 'Morse']; console.log(names); // [ 'Foo', 'Bar', 'Morse' ] names.reverse(); console.log(names); // [ 'Morse', 'Bar', 'Foo' ]