Last change
on this file since 84d0fbb was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
470 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | var copyObject = require('./_copyObject'),
|
---|
| 2 | keys = require('./keys');
|
---|
| 3 |
|
---|
| 4 | /**
|
---|
| 5 | * The base implementation of `_.assign` without support for multiple sources
|
---|
| 6 | * or `customizer` functions.
|
---|
| 7 | *
|
---|
| 8 | * @private
|
---|
| 9 | * @param {Object} object The destination object.
|
---|
| 10 | * @param {Object} source The source object.
|
---|
| 11 | * @returns {Object} Returns `object`.
|
---|
| 12 | */
|
---|
| 13 | function baseAssign(object, source) {
|
---|
| 14 | return object && copyObject(source, keys(source), object);
|
---|
| 15 | }
|
---|
| 16 |
|
---|
| 17 | module.exports = baseAssign;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.