GT2/GT2-iOS/node_modules/minipass/bench/lib/extend-through2.js

13 lines
233 B
JavaScript

'use strict'
const through2 = require('through2')
module.exports = function (opt) {
return opt.objectMode
? through2.obj(func)
: through2(func)
function func (data, enc, done) {
this.push(data, enc)
done()
}
}