type.hash.equal
0.000001

Checks a hash for equality.

Arguments
value
The value to compare to the given input.
Return Value
true if the hash input is equal to the given value, otherwise false.
something went wrong :(
Checking a hash for equality
Setup
authorization=PROCAUTH
require "proc"

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

true


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