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 e0db420 commit d8a59adCopy full SHA for d8a59ad
test/src/_fixtures.js
@@ -1,5 +1,5 @@
1
export function str(any) {
2
const s = JSON.stringify(any);
3
- if (s <= 40) return s;
+ if (s.length <= 40) return s;
4
return s.slice(0, 19) + '..' + s.slice(-19);
5
}
0 commit comments