UNPKG

@mlightcad/common

Version:

The common package provides shared utilities and base classes that are used across the RealDWG-Web ecosystem. This package contains fundamental components for color management, event handling, logging, performance monitoring, and file loading operations.

38 lines 1.54 kB
/** * Utility functions extracted from lodash-es to reduce bundle size * These are simplified implementations of commonly used lodash functions */ /** * Creates a shallow clone of an object * @param obj The object to clone * @returns A shallow clone of the object */ export declare function clone<T>(obj: T): T; /** * Assigns own enumerable properties of source objects to the destination object for all destination properties that resolve to undefined. * @param obj The destination object * @param sources The source objects * @returns The destination object */ export declare function defaults(obj: Record<string, unknown>, ...sources: Record<string, unknown>[]): Record<string, unknown>; /** * Checks if path is a direct property of object * @param obj The object to query * @param path The path to check * @returns Returns true if path exists, else false */ export declare function has(obj: Record<string, unknown>, path: string): boolean; /** * Checks if value is an empty object, collection, map, or set * @param value The value to check * @returns Returns true if value is empty, else false */ export declare function isEmpty(value: unknown): boolean; /** * Performs a deep comparison between two values to determine if they are equivalent * @param value The value to compare * @param other The other value to compare * @returns Returns true if the values are equivalent, else false */ export declare function isEqual(value: unknown, other: unknown): boolean; //# sourceMappingURL=AcCmLodashUtils.d.ts.map