Composes formatters.
Given an array of formatters, it will return a new formatter that will apply all of them to the input string.
const redTextWhiteBackground = mix(foregroundRed, backgroundWhite);redTextWhiteBackground("Vangware");// It can also be used as a tag function for tagged templates:redTextWhiteBackground`Vangware`; Copy
const redTextWhiteBackground = mix(foregroundRed, backgroundWhite);redTextWhiteBackground("Vangware");// It can also be used as a tag function for tagged templates:redTextWhiteBackground`Vangware`;
Formatter
Rest
Array of formatters to be composed.
Formatter composed of the given formatters.
Composes formatters.
Remarks
Given an array of formatters, it will return a new formatter that will apply all of them to the input string.
Example
See
Formatter