mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Bump to v4.1.0.
This commit is contained in:
16
_copySymbols.js
Normal file
16
_copySymbols.js
Normal file
@@ -0,0 +1,16 @@
|
||||
var copyObject = require('./_copyObject'),
|
||||
getSymbols = require('./_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);
|
||||
}
|
||||
|
||||
module.exports = copySymbols;
|
||||
Reference in New Issue
Block a user