type.number.even
0.000001

Check if a number is even.

Arguments
no defined arguments
Return Value
true if the given number is equally divisible by two, otherwise false.
something went wrong :(
Checking if a number is even
Setup
authorization=PROCAUTH
require "proc"

client = Proc.connect("PROCAUTH")
const Proc = require("@proc.dev/client");
const client = Proc.connect("PROCAUTH");
client.type.number.even.call(
  42
)
client.type.number.even.call(
  42
);
curl "https://proc.run/type/number/even" --silent \
--header "authorization: bearer $authorization" \
--header "content-type: application/json" \
--data '42'
 

true


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