@opfr/utils-lang 0.0.37 → 0.0.39
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/object.d.ts +1 -0
- package/dist/string.d.ts +2 -0
- package/dist/utils-lang.js +267 -255
- package/dist/utils-lang.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/object.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
export declare const mergeObjects: <TKey extends string, TValue>(obj1: { [key in TKey]: TValue; }, obj2: Partial<{ [key_1 in TKey]: TValue; }>, mergeFn: (v1: TValue, v2: TValue) => TValue) => { [key_2 in TKey]: TValue; };
|
|
2
|
+
export declare const isObject: (obj: unknown) => obj is Object;
|
package/dist/string.d.ts
CHANGED
|
@@ -10,3 +10,5 @@ export declare const numberToOrdinal: (nb: number) => string | null;
|
|
|
10
10
|
export declare const trim: (str: string) => string;
|
|
11
11
|
export declare const breakWords: (str: string) => string[];
|
|
12
12
|
export declare const isString: (str: unknown) => str is string;
|
|
13
|
+
export declare const camelcase: (str: string) => string;
|
|
14
|
+
export declare const pascalCase: (str: string) => string;
|