type.hash.keys0.000001
Extracts keys from a hash.
Arguments
no defined arguments
Return Value
An array of keys extracted from the given hash.something went wrong :(
Getting keys from a hash
Setup
authorization=PROCAUTH
require "proc"
client = Proc.connect("PROCAUTH")
const Proc = require("@proc.dev/client");
const client = Proc.connect("PROCAUTH");
client.type.hash.keys.call(
{one: 1, two: 2, three: 3}
)
client.type.hash.keys.call(
{one: 1, two: 2, three: 3}
);
curl "https://proc.run/type/hash/keys" --silent \
--header "authorization: bearer $authorization" \
--header "content-type: application/json" \
--data '{"one": 1, "two": 2, "three": 3}'
["one", "two", "three"]
Stuck? Want to chat about an idea? Join the community on Discord.