MCPcopy
hub / github.com/BrainJS/brain.js / prefinish

Function prefinish

browser.js:24777–24787  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24775}
24776
24777function prefinish() {
24778 var _this = this;
24779
24780 if (typeof this._flush === 'function') {
24781 this._flush(function (er, data) {
24782 done(_this, er, data);
24783 });
24784 } else {
24785 done(this, null, null);
24786 }
24787}
24788
24789Transform.prototype.push = function (chunk, encoding) {
24790 this._transformState.needTransform = false;

Callers 1

finishMaybeFunction · 0.70

Calls 1

doneFunction · 0.70

Tested by

no test coverage detected