Skip to content

Commit 5f6329d

Browse files
committed
feat: add express server and update middleware utility functions
1 parent 7e181f7 commit 5f6329d

22 files changed

+4867
-197
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,8 @@ A set of helpers for working with JavaScript objects, including deep merging, fl
557557
- `isObjEmpty(obj: Record<any, any>): boolean` – Check if an object has no own properties.
558558
- `pick<T, K extends keyof T>(obj: T, keys: K[]): Pick<T, K>` – Create a new object with only the specified keys.
559559
- `omit<T, K extends keyof T>(obj: T, keys: K[]): Omit<T, K>` – Create a new object without the specified keys.
560-
- `deepObjMerge<T>(target: T, source: Partial<T>): T` – Deeply merge two objects.
560+
- `deepObjMerge<T extends object>(target: T, ...sources: any[]): T` – Deeply merge multiple objects into the target.
561+
- `isPlainObject(value: any): value is Record<string, any>` – Check if a value is a plain object.
561562
- `flattenObject<T>(obj: T, prefix?: string): Record<string, any>` – Flatten a nested object into dot notation.
562563
- `getValueByPath<T>(obj: T, path: string): any` – Get a value from an object by dot path.
563564
- `setValueByPath<T>(obj: T, path: string, value: any): T` – Set a value in an object by dot path.

0 commit comments

Comments
 (0)