isPositiveInteger() — tailwindcss Function Reference
Architecture documentation for the isPositiveInteger() function in infer-data-type.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 559275a8_927e_3002_3298_4cbb685cc92a["isPositiveInteger()"] 07e623bd_0cfb_00fb_6300_b582d8ed9fd0["tryValueReplacements()"] 07e623bd_0cfb_00fb_6300_b582d8ed9fd0 -->|calls| 559275a8_927e_3002_3298_4cbb685cc92a 24d8d1d0_89ac_76a1_956a_704ad43fcba6["modernizeArbitraryValuesVariant()"] 24d8d1d0_89ac_76a1_956a_704ad43fcba6 -->|calls| 559275a8_927e_3002_3298_4cbb685cc92a 45e62b66_df0f_cebe_01ef_c7441191c81a["bareIntegers()"] 45e62b66_df0f_cebe_01ef_c7441191c81a -->|calls| 559275a8_927e_3002_3298_4cbb685cc92a 02783c79_4478_595a_1c54_7b850e8ec942["barePercentages()"] 02783c79_4478_595a_1c54_7b850e8ec942 -->|calls| 559275a8_927e_3002_3298_4cbb685cc92a c4aec295_4583_cfbe_d6f4_901cfc70a81a["barePixels()"] c4aec295_4583_cfbe_d6f4_901cfc70a81a -->|calls| 559275a8_927e_3002_3298_4cbb685cc92a 254d5fca_3c51_4b0f_ca43_04b0433a5c64["bareMilliseconds()"] 254d5fca_3c51_4b0f_ca43_04b0433a5c64 -->|calls| 559275a8_927e_3002_3298_4cbb685cc92a 6840a74b_8df2_1983_e3ab_6b79cd7c4062["bareDegrees()"] 6840a74b_8df2_1983_e3ab_6b79cd7c4062 -->|calls| 559275a8_927e_3002_3298_4cbb685cc92a 17347bdd_a21c_0b8d_421a_eb1316077672["bareAspectRatio()"] 17347bdd_a21c_0b8d_421a_eb1316077672 -->|calls| 559275a8_927e_3002_3298_4cbb685cc92a 68425b42_c064_1c25_d623_f15f4b214077["bareRepeatValues()"] 68425b42_c064_1c25_d623_f15f4b214077 -->|calls| 559275a8_927e_3002_3298_4cbb685cc92a 16ea83b7_6a24_51d7_fe79_5abfdb79d93e["registerLegacyUtilities()"] 16ea83b7_6a24_51d7_fe79_5abfdb79d93e -->|calls| 559275a8_927e_3002_3298_4cbb685cc92a 5c9381d6_815c_d899_eaab_849d755be47e["createCssUtility()"] 5c9381d6_815c_d899_eaab_849d755be47e -->|calls| 559275a8_927e_3002_3298_4cbb685cc92a 84f8ccf2_2af5_fa7c_53f2_954b21183738["resolveValueFunction()"] 84f8ccf2_2af5_fa7c_53f2_954b21183738 -->|calls| 559275a8_927e_3002_3298_4cbb685cc92a 7c96535c_85cb_d6bf_efe4_875fba595c4f["createVariants()"] 7c96535c_85cb_d6bf_efe4_875fba595c4f -->|calls| 559275a8_927e_3002_3298_4cbb685cc92a style 559275a8_927e_3002_3298_4cbb685cc92a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/tailwindcss/src/utils/infer-data-type.ts lines 346–349
export function isPositiveInteger(value: any) {
let num = Number(value)
return Number.isInteger(num) && num >= 0 && String(num) === String(value)
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does isPositiveInteger() do?
isPositiveInteger() is a function in the tailwindcss codebase.
What calls isPositiveInteger()?
isPositiveInteger() is called by 13 function(s): bareAspectRatio, bareDegrees, bareIntegers, bareMilliseconds, barePercentages, barePixels, bareRepeatValues, createCssUtility, and 5 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free