-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FIx Reduction of empty array error #10
Comments
Fixed |
Nope, still there: TypeError: Reduce of empty array with no initial value With holmes and lovecraft short |
causes
|
Probably it's failing because : is not a \w character |
part of the dicst is actually linking to: |
mapkob.Row.prototype.sum generates
C:\Users\Robin\Desktop\mapkob.js:239
}, this).reduce(function(x, y) {
^
TypeError: Reduce of empty array with no initial value
at Array.reduce (native)
at mapkob.Row.sum (C:\Users\Robin\Desktop\mapkob.js:239:12)
at mapkob.Row.probabilities (C:\Users\Robin\Desktop\mapkob.js:251:18)
at mapkob.TransitionMatrix.generateChain (C:\Users\Robin\Desktop\mapkob.js:190:7)
at Object. (C:\Users\Robin\Desktop\mapkob.js:318:19)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Function.Module.runMain (module.js:447:10)
[Finished in 19.1s]
The text was updated successfully, but these errors were encountered: