* 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)
| 6846 | * @returns {string|symbol} Returns the key. |
| 6847 | */ |
| 6848 | function toKey(value) { |
| 6849 | if (typeof value == 'string' || isSymbol(value)) { |
| 6850 | return value; |
| 6851 | } |
| 6852 | var result = (value + ''); |
| 6853 | return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; |
| 6854 | } |
| 6855 | |
| 6856 | /** |
| 6857 | * Converts `func` to its source code. |
no test coverage detected