type.array.equal
0.000001

Checks an array for equality.

Arguments
value
The value to compare to the given input.
Return Value
true if the array input is equal to the given value, otherwise false.
something went wrong :(
Checking an array 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"], value: ["foo"]
)
client.type.array.equal.call(
  ["foo"], {value: ["foo"]}
);
curl "https://proc.run/type/array/equal" --silent \
--header "authorization: bearer $authorization" \
--header "content-type: application/vnd.proc+json" \
--data '[[">>", ["%%", ["foo"]]], ["$$", "value", ["%%", ["foo"]]]]'
 

true


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