MCPcopy
hub / github.com/heroui-inc/tailwind-variants / falsyToString

Function falsyToString

src/utils.js:54–55  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

52};
53
54export const falsyToString = (value) =>
55 value === false ? "false" : value === true ? "true" : value === 0 ? "0" : value;
56
57export const isEmptyObject = (obj) => {
58 if (!obj || typeof obj !== "object") return true;

Callers 2

getVariantValueFunction · 0.90
utils.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…