type.string.characters0.000001
Breaks a string into an array.
Arguments
no defined arguments
Return Value
Each character of the given string as an array.something went wrong :(
Breaking a string into characters
Setup
authorization=PROCAUTH
require "proc"
client = Proc.connect("PROCAUTH")
const Proc = require("@proc.dev/client");
const client = Proc.connect("PROCAUTH");
client.type.string.characters.call(
"hello"
)
client.type.string.characters.call(
"hello"
);
curl "https://proc.run/type/string/characters" --silent \
--header "authorization: bearer $authorization" \
--header "content-type: application/json" \
--data '"hello"'
["h", "e", "l", "l", "o"]
Stuck? Want to chat about an idea? Join the community on Discord.