Update from Vibe Studio

This commit is contained in:
Vibe Studio
2026-01-16 02:20:32 +00:00
parent a4605e311a
commit 71de1506ca
28603 changed files with 2179459 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
/**
* 剔除 boolean 值
* @param {boolean|T} obj
* @returns T
*/
export declare const omitBoolean: <T>(obj: boolean | T) => T | undefined;

View File

@@ -0,0 +1,11 @@
/**
* 剔除 boolean 值
* @param {boolean|T} obj
* @returns T
*/
export var omitBoolean = function omitBoolean(obj) {
if (obj && obj !== true) {
return obj;
}
return undefined;
};