@zag-js/utils
Advanced tools
Comparing version 0.0.0-dev-20221105065843 to 0.0.0-dev-20221105113307
@@ -36,3 +36,3 @@ declare function toArray<T>(v: T | T[] | undefined | null): T[]; | ||
declare function compact<T extends Record<string, unknown>>(obj: T): T; | ||
declare function compact<T extends Record<string, unknown> | undefined>(obj: T): T; | ||
@@ -39,0 +39,0 @@ declare function warn(m: string): void; |
@@ -148,2 +148,4 @@ "use strict"; | ||
function compact(obj) { | ||
if (obj === void 0) | ||
return obj; | ||
return Object.fromEntries( | ||
@@ -150,0 +152,0 @@ Object.entries(obj).filter(([, value]) => value !== void 0).map(([key, value]) => [key, isObject(value) ? compact(value) : value]) |
{ | ||
"name": "@zag-js/utils", | ||
"version": "0.0.0-dev-20221105065843", | ||
"version": "0.0.0-dev-20221105113307", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12850
377