mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
Assume Symbol is always defined (#4111)
This commit is contained in:
committed by
John-David Dalton
parent
4c55ea7068
commit
6cb1f71adf
@@ -4,8 +4,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
|
||||
|
||||
/**
|
||||
* The base implementation of `toString` which doesn't convert nullish
|
||||
|
||||
Reference in New Issue
Block a user