hasMathFn() — tailwindcss Function Reference
Architecture documentation for the hasMathFn() function in math-operators.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 501a42e8_6ea6_67f1_2004_de32c1c55eb7["hasMathFn()"] 27cd040f_e3a9_f8b7_3c7c_0547b201eeb0["math-operators.ts"] 501a42e8_6ea6_67f1_2004_de32c1c55eb7 -->|defined in| 27cd040f_e3a9_f8b7_3c7c_0547b201eeb0 b99833b2_dd59_8252_1a07_4da82008e44a["isNumber()"] b99833b2_dd59_8252_1a07_4da82008e44a -->|calls| 501a42e8_6ea6_67f1_2004_de32c1c55eb7 6e5ca11b_0795_cec6_2d01_3fe0ccd21e05["isPercentage()"] 6e5ca11b_0795_cec6_2d01_3fe0ccd21e05 -->|calls| 501a42e8_6ea6_67f1_2004_de32c1c55eb7 2afba299_ad9c_a11a_c0fd_d2915a60d7e0["isFraction()"] 2afba299_ad9c_a11a_c0fd_d2915a60d7e0 -->|calls| 501a42e8_6ea6_67f1_2004_de32c1c55eb7 1892fde4_0ab4_2e7a_38c4_cf431005a033["isLength()"] 1892fde4_0ab4_2e7a_38c4_cf431005a033 -->|calls| 501a42e8_6ea6_67f1_2004_de32c1c55eb7 style 501a42e8_6ea6_67f1_2004_de32c1c55eb7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/tailwindcss/src/utils/math-operators.ts lines 41–43
export function hasMathFn(input: string) {
return input.indexOf('(') !== -1 && MATH_FUNCTIONS.some((fn) => input.includes(`${fn}(`))
}
Domain
Subdomains
Source
Frequently Asked Questions
What does hasMathFn() do?
hasMathFn() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/utils/math-operators.ts.
Where is hasMathFn() defined?
hasMathFn() is defined in packages/tailwindcss/src/utils/math-operators.ts at line 41.
What calls hasMathFn()?
hasMathFn() is called by 4 function(s): isFraction, isLength, isNumber, isPercentage.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free