UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

22 lines (21 loc) 552 B
/** * This method is like `defaults` except that it recursively assigns * default properties. * * **Note:** This method mutates `object`. * * @since 5.21.0 * @category Object * @param object The destination object. * @param sources The source objects. * @returns Returns `object`. * @see [[defaults]] * @example * * ```js * defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } }) * // => { 'a': { 'b': 2, 'c': 3 } } * ``` */ export declare function defaultsDeep(object: any, ...args: any[]): any; export default defaultsDeep;