MCPcopy
hub / github.com/prettier/prettier / lowerCaseIf

Function lowerCaseIf

src/language-html/parse/postprocess.js:128–131  ·  view source on GitHub ↗
(text, fn)

Source from the content-addressed store, hash-verified

126}
127
128function lowerCaseIf(text, fn) {
129 const lowerCasedText = text.toLowerCase();
130 return fn(lowerCasedText) ? lowerCasedText : text;
131}
132
133/**
134 * @param {Ast.Attribute | Ast.Element} node

Callers 1

normalizeNameFunction · 0.85

Calls 1

fnFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…