(values, maxThreshold = 0)
| 6 | */ |
| 7 | export default class DataFormatter { |
| 8 | constructor(values, maxThreshold = 0) { |
| 9 | if (values === undefined) return; |
| 10 | |
| 11 | this.values = values; |
| 12 | // go over all characters and keep track of all unique ones seen |
| 13 | // count up all characters |
| 14 | this.indexTable = {}; |
| 15 | this.characterTable = {}; |
| 16 | this.characters = []; |
| 17 | this.specialIndexes = []; |
| 18 | this.buildCharactersFromIterable(values); |
| 19 | this.buildTables(maxThreshold); |
| 20 | } |
| 21 | |
| 22 | buildCharactersFromIterable(values) { |
| 23 | let tempCharactersTable = {}; |
nothing calls this directly
no test coverage detected