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.
_.isPlainObject
1 parent 058590a commit 06da220Copy full SHA for 06da220
1 file changed
src/statsUtils.js
@@ -1,8 +1,6 @@
1
const {createWriteStream} = require('fs');
2
const {Readable} = require('stream');
3
4
-const _ = require('lodash');
5
-
6
class StatsSerializeStream extends Readable {
7
constructor(stats) {
8
super();
@@ -49,7 +47,7 @@ class StatsSerializeStream extends Readable {
49
47
50
48
this._indentLevel--;
51
yield obj.length ? `\n${this._indent}]` : ']';
52
- } else if (_.isPlainObject(obj)) {
+ } else {
53
yield '{';
54
this._indentLevel++;
55
0 commit comments