(from: number, to: number, array: any[])
| 434 | } |
| 435 | |
| 436 | public getSecondaryIndex(name: string) { |
| 437 | if (this.secondaryIndexes[name.trimEnd().toUpperCase()]) { |
| 438 | return this.secondaryIndexes[name.trimEnd().toUpperCase()]; |
| 439 | } |
| 440 | |
| 441 | const secondary = this.getKeyByName(name); |
| 442 | if (secondary === undefined) { |
| 443 | throw `Table, secondary key "${name}" not found`; |