Ensure _.toString works on an array of symbols.

This commit is contained in:
John-David Dalton
2016-10-05 09:05:51 -07:00
parent d2f74ee245
commit 836bd258a0
2 changed files with 26 additions and 0 deletions

View File

@@ -4230,6 +4230,10 @@
if (typeof value == 'string') {
return value;
}
if (isArray(value)) {
// Recursively convert values (susceptible to call stack limits).
return arrayMap(value, baseToString) + '';
}
if (isSymbol(value)) {
return symbolToString ? symbolToString.call(value) : '';
}