We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 795b55d commit 1490bc5Copy full SHA for 1490bc5
javascript-stringify.js
@@ -98,7 +98,8 @@
98
'[object Array]': function (array, indent, stringify) {
99
// Map array values to their stringified values with correct indentation.
100
var values = array.map(function (value) {
101
- return indent + stringify(value).split('\n').join('\n' + indent);
+ var str = stringify(value);
102
+ return indent + (str && str.split('\n').join('\n' + indent));
103
}).join(indent ? ',\n' : ',');
104
105
// Wrap the array in newlines if we have indentation set.
0 commit comments