MCPcopy Index your code
hub / github.com/BrainJS/brain.js / cb

Function cb

test/base/options.js:76–76  ·  view source on GitHub ↗
(res)

Source from the content-addressed store, hash-verified

74
75 it('callback should be settable in the constructor', () => {
76 let cb = function (res) {};
77 let opts = { callback: cb };
78 var net = new brain.NeuralNetwork(opts);
79 assert.ok(typeof net.trainOpts.callback === 'function', `callback => ${net.trainOpts.callback} but should be ${opts.callback}`);

Callers 6

browser.jsFile · 0.85
afterTransformFunction · 0.85
onwriteErrorFunction · 0.85
afterWriteFunction · 0.85
onCorkedFinishFunction · 0.85
destroyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected