source: imaps-frontend/node_modules/lodash/_cloneSymbol.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 524 bytes
Line 
1var Symbol = require('./_Symbol');
2
3/** Used to convert symbols to primitives and strings. */
4var symbolProto = Symbol ? Symbol.prototype : undefined,
5 symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
6
7/**
8 * Creates a clone of the `symbol` object.
9 *
10 * @private
11 * @param {Object} symbol The symbol object to clone.
12 * @returns {Object} Returns the cloned symbol object.
13 */
14function cloneSymbol(symbol) {
15 return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
16}
17
18module.exports = cloneSymbol;
Note: See TracBrowser for help on using the repository browser.