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

Function _possibleConstructorReturn

browser.js:491–491  ·  view source on GitHub ↗
(self, call)

Source from the content-addressed store, hash-verified

489function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
490
491function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
492
493function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
494

Callers 15

NeuralNetworkGPUFunction · 0.70
GRUTimeStepFunction · 0.70
GRUFunction · 0.70
LSTMTimeStepFunction · 0.70
LSTMFunction · 0.70
OnesMatrixFunction · 0.70
RandomMatrixFunction · 0.70
RNNTimeStepFunction · 0.70
TrainStreamFunction · 0.70
CPUFunctionBuilderFunction · 0.70
CPUFunctionNodeFunction · 0.70
CPUKernelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected