Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_cloneSymbol.js 524B

123456789101112131415161718
  1. var Symbol = require('./_Symbol');
  2. /** Used to convert symbols to primitives and strings. */
  3. var symbolProto = Symbol ? Symbol.prototype : undefined,
  4. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  5. /**
  6. * Creates a clone of the `symbol` object.
  7. *
  8. * @private
  9. * @param {Object} symbol The symbol object to clone.
  10. * @returns {Object} Returns the cloned symbol object.
  11. */
  12. function cloneSymbol(symbol) {
  13. return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
  14. }
  15. module.exports = cloneSymbol;