Update index.js
This commit is contained in:
parent
60db67b521
commit
2451677995
1 changed files with 1 additions and 1 deletions
|
|
@ -135,7 +135,7 @@ const createStyler = (open, close, parent) => {
|
|||
const createBuilder = (self, _styler, _isEmpty) => {
|
||||
const builder = (...arguments_) => {
|
||||
if (Array.isArray(arguments_[0])) {
|
||||
// Called as a template literal, e.g. chalk.red`2 + 3 = {bold ${2+3}}`
|
||||
// Called as a template literal, for example: chalk.red`2 + 3 = {bold ${2+3}}`
|
||||
return applyStyle(builder, chalkTag(builder, ...arguments_));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue