@noah-libjs/utils 0.0.23 → 0.0.42

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.
@@ -0,0 +1,12 @@
1
+ import { AnyObject } from "./type-utils";
2
+ export * from "radash";
3
+ export declare function get<T = any>(value: any, path: string, defaultValue?: T | undefined): T;
4
+ export declare function identity<T>(value: T): T;
5
+ export declare function isBoolean(value: any): value is boolean;
6
+ export declare function isObjectLike(value: any): boolean;
7
+ export declare function isNull(value: any): value is null;
8
+ export declare function size(value: any): number;
9
+ export declare function isNil(value: any): value is null | undefined;
10
+ export declare function toString(value: any): string;
11
+ export declare function cloneDeep<T>(value: T): T | null;
12
+ export declare function hasOwn(obj: AnyObject, key: PropertyKey): boolean;
@@ -0,0 +1,12 @@
1
+ export * from './types';
2
+ export * from './helper';
3
+ export * from './json-helper';
4
+ export * from './small-fn';
5
+ export * from './Event';
6
+ export * from './type-utils';
7
+ export * from './log';
8
+ export * from './constant';
9
+ export * from './moment-help';
10
+ export * from './option-help';
11
+ export * from './dic-helper';
12
+ export * from './load-src';
@@ -0,0 +1,3 @@
1
+ export declare function safe_json_parse<T = any>(str?: any, retOnErr?: T | null): T | null;
2
+ export declare function safe_json_stringify(obj?: any): string;
3
+ export declare function safe_json_parse_arr<T = any>(str?: any, retOnErr?: T[]): T[];