assign-in

v4.17.11arrow_drop_down
v4.17.11
STATUS
Passing
DOWNLOADS
133
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
6 years ago
SIZE
N/A
This method is like `_.assign` except that it iterates over own and inherited source properties. **Note:** This method mutates `object`.
1 contributor
Install assign-in as a package?
Copied
npm i @bit/lodash.lodash.assign-in
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
No preview available
modifieddraft
chevron_left
chevron_right
assignIn (
object:Object,
sources:...Object?
) : Object

This method is like _.assign except that it iterates over own and inherited source properties.

Note: This method mutates object.

Example
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 }
Arguments
object: Object

The destination object.

sources: ...Object?

The source objects.

Returns
Object

Returns `object`.

Help and resources