time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

_copySymbolsIn.js (470B)


      1 var copyObject = require('./_copyObject'),
      2     getSymbolsIn = require('./_getSymbolsIn');
      3 
      4 /**
      5  * Copies own and inherited 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 copySymbolsIn(source, object) {
     13   return copyObject(source, getSymbolsIn(source), object);
     14 }
     15 
     16 module.exports = copySymbolsIn;