@biggerstar/deepmerge
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published
/**
 * 深度合并
 * @param target 目标对象
 * @param source 源对象
 * @param options
 * @param options.safe  是否是安全合并, 如果指定安全合并的话如果目标对象没有的键不会被合并
 * */
 
export function deepmerge<T extends Record<any, any>>(target: T, source: Record<any, any>, options:{safe: boolean}): T;

Readme

Keywords

none

Package Sidebar

Install

npm i @biggerstar/deepmerge

Weekly Downloads

26

Version

1.0.3

License

MIT

Unpacked Size

1.71 kB

Total Files

4

Last publish

Collaborators

  • biggerstar