| Leo Repp | 58b9f11 | 2021-11-22 11:57:47 +0100 | [diff] [blame^] | 1 | var copyObject = require('./_copyObject'), |
| 2 | getSymbols = require('./_getSymbols'); |
| 3 | |
| 4 | /** |
| 5 | * Copies own symbols of `source` to `object`. |
| 6 | * |
| 7 | * @private |
| 8 | * @param {Object} source The object to copy symbols from. |
| 9 | * @param {Object} [object={}] The object to copy symbols to. |
| 10 | * @returns {Object} Returns `object`. |
| 11 | */ |
| 12 | function copySymbols(source, object) { |
| 13 | return copyObject(source, getSymbols(source), object); |
| 14 | } |
| 15 | |
| 16 | module.exports = copySymbols; |