type.array.join
0.000001

Joins values of an array to a string.

Arguments
separator
The separator to join values with. Defaults to an empty string.
Return Value
The string of joined values.
something went wrong :(
Joining values of an array
Setup
authorization=PROCAUTH
require "proc"

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

foo:bar:baz


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