UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

34 lines (33 loc) 691 B
/** * This method is like `assign` except that it iterates over own and * inherited source properties. * * **Note:** This method mutates `object`. * * @since 5.5.0 * @alias extend * @category Object * @param target The destination object. * @param sources The source objects. * @returns Returns `object`. * @see [[assign]] * @example * * ```js * function Foo() { * this.a = 1; * } * * function Bar() { * this.c = 3; * } * * Foo.prototype.b = 2; * Bar.prototype.d = 4; * * assignIn({ 'a': 0 }, new Foo, new Bar); * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 } * ``` */ export declare function assignIn(target: any, ...args: any[]): any; export default assignIn;