
Node.js
- 14 ответов
- 0 вопросов
15
Вклад в тег
process.stdout and process.stderr differ from other Node.js streams in important ways:
- They are used internally by console.log() and console.error(), respectively.
Node.js docs
let data = [[1, 2, 3], [5, 2]];
const sums = data.map( arr => arr.reduce( (acc, value) => acc + value, 0))