Node.js · Middle · Question 19 of 75
What is objectMode in streams?
- 1A debug mode that prints every chunk
- ✓Correct answer: A mode where a stream passes any JavaScript values instead of only strings and Buffers
- 3A mode that converts JSON to objects automatically
Explanation
In object mode, highWaterMark counts objects instead of bytes. It's useful for pipelines of records, such as rows from a database.