Array.reduce(...) will crash if the array is empty. So we just default to 0, if this.vocab is empty. |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| build.sh | ||
| index.html | ||
| Makefile | ||
| package-lock.json | ||
| package.json | ||
| shit.sh | ||
| tsconfig.json | ||
Array.reduce(...) will crash if the array is empty. So we just default to 0, if this.vocab is empty. |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| build.sh | ||
| index.html | ||
| Makefile | ||
| package-lock.json | ||
| package.json | ||
| shit.sh | ||
| tsconfig.json | ||