mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +00:00
Assume Symbol is always defined (#4111)
This commit is contained in:
committed by
John-David Dalton
parent
4c55ea7068
commit
6cb1f71adf
@@ -5,8 +5,7 @@ import isSymbol from './isSymbol.js'
|
||||
const INFINITY = 1 / 0
|
||||
|
||||
/** Used to convert symbols to primitives and strings. */
|
||||
const symbolProto = Symbol ? Symbol.prototype : undefined
|
||||
const symbolToString = symbolProto ? symbolProto.toString : undefined
|
||||
const symbolToString = Symbol.prototype.toString
|
||||
|
||||
/**
|
||||
* Converts `value` to a string. An empty string is returned for `null`
|
||||
|
||||
Reference in New Issue
Block a user