mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Bump to v4.0.0.
This commit is contained in:
16
internal/copySymbols.js
Normal file
16
internal/copySymbols.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import copyObject from './copyObject';
|
||||
import getSymbols from './getSymbols';
|
||||
|
||||
/**
|
||||
* Copies own symbol properties of `source` to `object`.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} source The object to copy symbols from.
|
||||
* @param {Object} [object={}] The object to copy symbols to.
|
||||
* @returns {Object} Returns `object`.
|
||||
*/
|
||||
function copySymbols(source, object) {
|
||||
return copyObject(source, getSymbols(source), object);
|
||||
}
|
||||
|
||||
export default copySymbols;
|
||||
Reference in New Issue
Block a user