Module

x/lodash_es/src/array.js>reverse

lodash for deno use
Latest
function reverse
import { reverse } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/array.js";

Reverses array so that the first element becomes the last, the second element becomes the second to last, and so on.

Note: This method mutates array and is based on Array#reverse.

Examples

var array = [1, 2, 3];

_.reverse(array); // => [3, 2, 1]

console.log(array); // => [3, 2, 1]

Parameters

array

The array to modify.