UNPKG

@dvcol/common-utils

Version:

Typescript library for common utility functions and constants

5 lines (3 loc) 320 B
declare function shallowClone<T, O extends keyof T | string | number | symbol = keyof T | string | number | symbol>(obj: T, depth?: number, omit?: O[]): T; declare const isShallowEqual: <T extends Record<string | number | symbol, any>>(a?: T, b?: T, depth?: number) => boolean; export { isShallowEqual, shallowClone };