* Converts `value` to a string key if it's not a string or symbol. * * @private * @param {*} value The value to inspect. * @returns {string|symbol} Returns the key.
(value)
| 705 | * @returns {string|symbol} Returns the key. |
| 706 | */ |
| 707 | function toKey(value) { |
| 708 | if (typeof value == 'string' || isSymbol(value)) { |
| 709 | return value; |
| 710 | } |
| 711 | var result = value + ''; |
| 712 | return result == '0' && 1 / value == -INFINITY ? '-0' : result; |
| 713 | } |
| 714 | |
| 715 | /** |
| 716 | * Converts `func` to its source code. |