@giteeteam/apps-team-components 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/array.d.ts +1 -1
- package/dist/lib/array.js +1 -1
- package/package.json +1 -1
package/dist/lib/array.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ export declare const arrayDiff: (origin: Array<any>, target: Array<any>) => IDif
|
|
|
6
6
|
export declare const serializationArrayByKey: (list: any[], keyPath: string) => Record<string, any> | null;
|
|
7
7
|
export declare const createHash: () => number;
|
|
8
8
|
export declare function parseArray(str: string): string[];
|
|
9
|
-
export declare const getArrayValue: <T = any>(value: T) => T
|
|
9
|
+
export declare const getArrayValue: <T = any>(value: T) => T;
|
|
10
10
|
export {};
|
package/dist/lib/array.js
CHANGED
|
@@ -41,4 +41,4 @@ export function parseArray(str) {
|
|
|
41
41
|
}
|
|
42
42
|
return [];
|
|
43
43
|
}
|
|
44
|
-
export const getArrayValue = (value) => { var _a; return (_a = (
|
|
44
|
+
export const getArrayValue = (value) => { var _a; return (_a = (isArray(value) ? value : [value])) === null || _a === void 0 ? void 0 : _a.filter(Boolean); };
|