type.array.append
0.000001

Appends a value to an array.

Arguments
valuerequired
The value to append to the given array.
Return Value
The array with the given value appended.
something went wrong :(
Appending to 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.append.call(
  ["foo", "bar"], value: "baz"
)
client.type.array.append.call(
  ["foo", "bar"], {value: "baz"}
);
curl "https://proc.run/type/array/append?value=baz" --silent \
--header "authorization: bearer $authorization" \
--header "content-type: application/json" \
--data '["foo", "bar"]'
 

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


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