MCPcopy Create free account
hub / github.com/better-auth/examples / styleToString

Function styleToString

svelte-kit-example/src/lib/utils.ts:38–45  ·  view source on GitHub ↗
(
		style: Record<string, number | string | undefined>,
	)

Source from the content-addressed store, hash-verified

36 };
37
38 const styleToString = (
39 style: Record<string, number | string | undefined>,
40 ): string => {
41 return Object.keys(style).reduce((str, key) => {
42 if (style[key] === undefined) return str;
43 return str + `${key}:${style[key]};`;
44 }, "");
45 };
46
47 return {
48 duration: params.duration ?? 200,

Callers 1

flyAndScaleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected