Given an open, a close value and an input string, return formatted
input (surrounded by open and close).
Example
format(13)(42)("Vangware"); // "\x1b[42mVangware\x1b[13m" // It can also be used as a tag function for tagged templates: format(13)(42)`Vangware`; // "\x1b[42mVangware\x1b[13m"
Given an
open
, aclose
value and aninput
string, return formattedinput
(surrounded byopen
andclose
).Example
Returns
Curried function with
close
in context.