type.array.reverse
0.000001

Reverses an array.

Arguments
no defined arguments
Return Value
The given array in reverse order.
something went wrong :(
Reversing an array
Setup
authorization=PROCAUTH
require "proc"

client = Proc.connect("PROCAUTH")
const Proc = require("@proc.dev/client");
const client = Proc.connect("PROCAUTH");
client.type.array.reverse.call(
  ["foo", "bar", "baz"]
)
client.type.array.reverse.call(
  ["foo", "bar", "baz"]
);
curl "https://proc.run/type/array/reverse" --silent \
--header "authorization: bearer $authorization" \
--header "content-type: application/json" \
--data '["foo", "bar", "baz"]'
 

["baz", "bar", "foo"]


Stuck? Want to chat about an idea? Join the community on Discord.