type.array.value
0.000001

Gets a value at an index.

Arguments
indexrequired
The index to get a value for.
Return Value
The value for the given index, or null if no value is present.
something went wrong :(
Getting the value at an index
Setup
authorization=PROCAUTH
require "proc"

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

bar


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