mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +00:00
Assume Symbol is always defined (#4111)
This commit is contained in:
committed by
John-David Dalton
parent
4c55ea7068
commit
6cb1f71adf
@@ -12,7 +12,7 @@ const spreadableSymbol = Symbol.isConcatSpreadable
|
||||
*/
|
||||
function isFlattenable(value) {
|
||||
return Array.isArray(value) || isArguments(value) ||
|
||||
!!(spreadableSymbol && value && value[spreadableSymbol])
|
||||
!!(value && value[spreadableSymbol])
|
||||
}
|
||||
|
||||
export default isFlattenable
|
||||
|
||||
Reference in New Issue
Block a user